Skip to content

Conversation

@Syfaro
Copy link
Member

@Syfaro Syfaro commented Mar 10, 2021

As per Telegram docs, user IDs will potentially contain up to 52 significant bits.

After one of the upcoming Bot API updates, some user identifiers will become bigger than 2^31 - 1 and it will be no longer possible to store them in a signed 32-bit integer type. User identifiers will have up to 52 significant bits, so a 64-bit integer or double-precision float type would still be safe for storing them. Please make sure that your code can correctly handle such user identifiers.

@Syfaro Syfaro added the telegram update Telegram changed something label Mar 10, 2021
@Syfaro Syfaro added this to the 5.0 milestone Mar 10, 2021
@Syfaro Syfaro merged commit 0a6e349 into develop Mar 10, 2021
@Syfaro Syfaro deleted the userid-int64 branch March 10, 2021 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

telegram update Telegram changed something

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants