Skip to content
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

Change UserID to int64 #431

Merged
merged 1 commit into from
Mar 10, 2021
Merged

Change UserID to int64 #431

merged 1 commit into from
Mar 10, 2021

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.

2 participants