fix
This commit is contained in:
parent
5a8d6c6488
commit
8828bfd05b
@ -1,6 +1,7 @@
|
|||||||
import telebot
|
import telebot
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
import time
|
import time
|
||||||
|
import json
|
||||||
|
|
||||||
from daemons import base
|
from daemons import base
|
||||||
from utils import platform
|
from utils import platform
|
||||||
@ -41,5 +42,5 @@ class Daemon(base.Daemon):
|
|||||||
bot = telebot.TeleBot(token)
|
bot = telebot.TeleBot(token)
|
||||||
@bot.message_handler(content_types=['audio', 'photo', 'voice', 'video', 'document', 'animation', '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):
|
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()
|
bot.polling()
|
||||||
|
Loading…
Reference in New Issue
Block a user