Python 和电视节目:登录错误 UPDATE_APP_TO_LOGIN

Python and telethon: login error UPDATE_APP_TO_LOGIN

从今天开始,我在尝试使用 telethon 登录我的电报帐户时遇到此错误:

RPCError 406: UPDATE_APP_TO_LOGIN (caused by SendCodeRequest)

我在官方文档中没有看到这个,知道如何解决这个问题吗?

看看 Telethon Updates Channel

编辑:补丁已经发布,只需如下所示更新您的电视节目

引用:

Telegram has started enforcing the use of 64-bit identifiers for users and chats, and the current stable version of the library does not support them yet. If you try to login, you may see UPDATE_APP_TO_LOGIN error.

只需将 telethon 库更新到版本 1.24

它对我有效,

pip install --upgrade telethon