commit
1b7e8686e4
@ -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(content_types=['audio', 'photo', 'voice', 'video', 'document', 'text', 'location', 'contact', 'sticker', 'video_note'])
|
||||
@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)
|
||||
|
Loading…
Reference in New Issue
Block a user