alexander-akhmetov / python-telegram

Python client for the Telegram's tdlib
MIT License
610 stars 122 forks source link

Exception has occurred: RuntimeError #227

Closed atrdev-rgb closed 2 years ago

atrdev-rgb commented 2 years ago

I'm having the problem on the first access, when login

Telegram error: {'@type': 'error', 'code': 406, 'message': 'UPDATE_APP_TO_LOGIN', '@extra': {'request_id': 'updateAuthorizationState'}} File "/opt/bots/test/main.py", line 12, in tg.login()

AYMENJD commented 2 years ago

You are using outdated version of tdlib, re-build tdlib then specify libtdjson.so path.

gibranlamarca commented 2 years ago

I'm having the same issue, have something to do with the new requirement of int64 IDs instead of 32 from telegram, updated yesterday

alexander-akhmetov commented 2 years ago

It is indeed an issue with the old tdlib version. python-telegram 0.14.0 uses tdlib 1.7.0 which is unsupported. I've released a new version of python-telegram (0.15.0), it uses tdlib v1.7.9 and should work.

alexander-akhmetov commented 2 years ago

Please, reopen if it still fails with 0.15.0