From 79e6a3166da036435f31e197f8ea5a72edc838e6 Mon Sep 17 00:00:00 2001 From: Moon Princess <painca@tutanota.com> Date: Sun, 20 Jan 2019 23:04:11 +0500 Subject: [PATCH] edit message_handler doc --- telebot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 52a4e5a..8c5b9cd 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -1333,7 +1333,7 @@ class TeleBot: bot.send_message(message.chat.id, 'Document received, sir!') # Handle all other commands. - @bot.message_handler(func=lambda message: True, content_types=['audio', 'video', 'document', 'text', 'location', 'contact', 'sticker']) + @bot.message_handler(func=lambda message: True, content_types=['audio', 'photo', 'voice', 'video', 'document', 'text', 'location', 'contact', 'sticker']) def default_command(message): bot.send_message(message.chat.id, "This is the default command handler.")