-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unexpected authorization request #4178
Comments
If the |
Thanks a lot. |
The session should be saved on |
I'm probably doing something wrong. But I don't understand what exactly.
I tried this way. The result is the same. In addition: after each such session creation, the telegram program in the phone requires authorization when entering. |
If other sessions are logged out, then that's #4051. |
Thank You! |
Code that causes the issue
...
client = TelegramClient('sess', api_id, api_hash)
async def main():
# Now you can use all client methods listed below, like for example...
await client.send_message('me', 'Hello to myself!')
with client:
client.loop.run_until_complete(main())
Expected behavior
greetings
Actual behavior
Re-authorization requirement: "Please enter your phone (or bot token):".
Traceback
No response
Telethon version
1.29.3
Python version
3.9.6
Operating system (including distribution name and version)
Windows 10
Other details
The file sess.session is in the same directory as the code file.
Checklist
pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip
and triggered the bug in the latest version.The text was updated successfully, but these errors were encountered: