I use the telethon library, everything was fine, exactly until the moment I wanted to create a message dump, when I try to do this, it throws an error that can't pickle _asyncio.Future objects , who can tell _asyncio.Future objects how to deal with it? code:
client = TelegramClient('telegram', CONST.TG_API_ID, CONST.TG_API_HASH) @client.on(events.NewMessage) async def message_log(event: events.NewMessage.Event): msg = pickle.dumps(event.message) with client.start(): client.run_until_disconnected()