Compare commits
No commits in common. "48489e607e019744e36829e4164318ff50a41fb7" and "185ce0c5ce90064ecf5b62195f70d872591441cc" have entirely different histories.
48489e607e
...
185ce0c5ce
@ -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', 'animation', 'text', 'location', 'contact', 'sticker', 'video_note'])
|
||||
@bot.message_handler()
|
||||
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