Telethon Updates
Warning to everyone storing user identifiers If your code is storing the user_id or sender_id in a database, make sure to use the type "long" or "int64". The user IDs will soon become larger than 2³¹ - 1, so they will not fit in a signed int32 type. We recommend…
Maybe not? According to FrayxRulez on the commit above:
> The message in @botnews is specific to the bot API, you don’t really have to care about it and this change isn’t needed.
Best case scenario none of this really matters for now. But I'd still recommend switching to something larger than 32 bits -- it might be needed in the future, once Telegram gains enough users.
It is technically possible for Telegram to send negative user identifiers, the schema definition allows it. So it still makes sense for Telethon to take measures to not expose negative user IDs even if that happened. (more discussion, but please stay on topic)
> The message in @botnews is specific to the bot API, you don’t really have to care about it and this change isn’t needed.
Best case scenario none of this really matters for now. But I'd still recommend switching to something larger than 32 bits -- it might be needed in the future, once Telegram gains enough users.
It is technically possible for Telegram to send negative user identifiers, the schema definition allows it. So it still makes sense for Telethon to take measures to not expose negative user IDs even if that happened. (more discussion, but please stay on topic)
❤1
👍1
❤1
❤1
By the way, the invite links are slowly migrating to a new format, so Telethon will no longer be able to extract the chat ID from them (and thus can't use the cache). If you were relying on this, or
utils.resolve_invite_links
, you're encouraged to migrate and start using IDs directly, as the new links are likely random and thus contain no meaningful information client-side. Server is the only one who knows what they are.GitHub
Fix resolve_invite_link again · Issue #1723 · LonamiWebs/Telethon
Context: a1f91d6, https://t.me/BotNews/57
❤1
❤1
👍2
❤1
❤1
❤1
❤1