fix
This commit is contained in:
parent
5a8d6c6488
commit
8828bfd05b
@ -1,6 +1,7 @@
|
||||
import telebot
|
||||
import multiprocessing
|
||||
import time
|
||||
import json
|
||||
|
||||
from daemons import base
|
||||
from utils import platform
|
||||
@ -41,5 +42,5 @@ class Daemon(base.Daemon):
|
||||
bot = telebot.TeleBot(token)
|
||||
@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)
|
||||
queues.set_task(queue, json.loads(message.json), 1)
|
||||
bot.polling()
|
||||
|
Loading…
Reference in New Issue
Block a user