Merge pull request 'master' (#25) from master into prod

Reviewed-on: #25
This commit is contained in:
emmatveev 2024-11-30 15:13:59 +03:00
commit 48489e607e

View File

@ -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', 'animation', '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)