You must use the same auth_key when doing send_code_request and when using sign_in. export the string session once you finish 'send_acc' step and memorize it in "step". pass it to TelegramClient(StringSession(string_session)) on "cod" step
after elif write telegramclient?
bro the ubot not become login to account my problem is not export string session is aftrt send code to my api bot the error https://t.me/TelethonChat/561993 was raise
Just send your code as text to pastebin.com if you need it edited, i explained what to do otherwise.
can i send file in private chat?
https://pastebin.com/bnpr4aXV
just export the string session, https://spaceb.in/ZPlgTyQS you can also disconnect and save the client object in the "step" to use with sign_in
there is not "string" in other steps obviously. you can also move the TelegramClient inside each step, the "cod" one will need string session from of previous step
Обсуждают сегодня