from telethon import TelegramClient
api_id = 1111111
api_hash = 'b83bb9ff5d6ecdd3f3900111111111'
client = TelegramClient('name', api_id, api_hash)
async def main():
print('work')
with client:
client.loop.run_until_complete(main())
Please enter your phone (or bot token): +79954741111
Please enter the code you received: 64111