need any handlers?
client = TelegramClient('sissy', API_ID, API_HASH)
async def main():
...
with client:
client.loop.run_until_complete(main())
if i do it this way then for example my messages send only after i do something in the official app
if you don't do any @client.on, why would the script care about your official app session. no handler == no interaction. it will only execute the code you put in main()
i dont know, it just doesnt do anything if dont interact with something in the official app, like.. im trying three messages to a bot, and it just stops like the second i stop doing anything
Обсуждают сегодня