session_str = app.session.save()
How can I give the number that the client wants to create in the form of a learner in the code? I didn't want to enter the number from the terminal.
please help me)
app= TelegramClient(StringSession(), APP_ID, API_HASH) app.connect() app.send_code_request(phone) app.sign_in(phone, code) session_str = app.session.save()
Обсуждают сегодня