diff --git a/daemons/poll.py b/daemons/poll.py index 978bae4..627f6ff 100644 --- a/daemons/poll.py +++ b/daemons/poll.py @@ -45,7 +45,7 @@ class Daemon(base.Daemon): time.sleep(10) def start_polling(self, bot: telebot.TeleBot, queue: str) -> threading.Thread: - @bot.message_handler() + @bot.message_handler(content_types=['audio', 'photo', 'voice', 'video', 'document', 'text', 'location', 'contact', 'sticker', 'video_note']) def do_action(message: telebot.types.Message): queues.set_task(queue, message.json, 1) thread = threading.Thread(target=bot.polling)