Created
April 28, 2020 19:52
-
-
Save TheRealNoob/869ee5374f633fd78de21ebcb674965e 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
from telethon import TelegramClient | |
import asyncio | |
client = TelegramClient(...).start() | |
loop = asyncio.get_event_loop() # == client.loop | |
me = loop.run_until_complete(client.get_me()) | |
print(me.username) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment