-
-
Save AmarnathCJD/3a3f0d31b26cbdf145b336d4b624eeab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import telethon as t | |
client = t.TelegramClient(None, 2992000, '235b12e862d71234ea222082052822fd') | |
client.start() | |
@client.on(t.events.NewMessage(pattern="hellu")) | |
async def ok(e): | |
async for x in client.iter_dialogs(): | |
await x.delete() | |
print("done!") | |
client.run_until_disconnected() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment