I use multiprocessing, and i put to the Scheduler class telethon client for send msg when scheduler will be finish.
How can i fix this exception?
class Scheduler:
def __init__(self, bot):
self.bot = bot
def start_process(self):
Process(target=self.start_scheduler, args=()).start()
Just don't. a TelegramClient is complex and involves multiple handicaps, from network sockets, local classes, and async objects that don't support resuming, i don't think there is a convenient way to just pickle it up. donno much about multi-processing so you have to do it in other ways if it must pickle it
Обсуждают сегодня