types
This commit is contained in:
parent
d195a6cc44
commit
a991bb7714
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user