How can I login to telegram with string session?

Viewed 1428
1 Answers

if you want to use telethon , you can do like this:

string = '1aaNk8EX-YRfwoRsebUkugFvht6DUPi_Q25UOCzOAqzc...'
with TelegramClient(StringSession(string), api_id, api_hash) as client:
   your code

you can read more in this link

Related