Compare commits

..

No commits in common. "cf12a0dca8550f444ea1f34153a8e4c076e83561" and "0a97e56539e6043c6038036584d7b79c78dbc342" have entirely different histories.

View File

@ -45,7 +45,7 @@ class Daemon(base.Daemon):
time.sleep(10) time.sleep(10)
def start_polling(self, bot: telebot.TeleBot, queue: str) -> threading.Thread: 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()
def do_action(message: telebot.types.Message): def do_action(message: telebot.types.Message):
queues.set_task(queue, message.json, 1) queues.set_task(queue, message.json, 1)
thread = threading.Thread(target=bot.polling) thread = threading.Thread(target=bot.polling)