disconnect?
Documentation for disconnect
TelegramClient.run_until_disconnected runs the application (event loop) until disconnected. It's similar to loop.run_forever, except it stops the asyncio event loop whenever the client.disconnect method is called. This is usually used whenever you intend on adding event handlers. For more information and examples read: https://docs.telethon.dev/en/stable/basic/updates.html?highlight=event%20updates
Обсуждают сегодня