vgram
vgram copied to clipboard
IDs should be i64s, not ints.
According to doc, IDs and file sizes are at most 52 bits.
This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
So they should be i64, not an int(32 bits integer).
The full list:
User.idChat.idMessage.migrate_to_chat_idMessage.migrate_from_chat_idAnimation.file_sizeAudio.file_sizeDocument.file_sizeVideo.file_sizeVoice.file_sizeContact.user_idUserShared.user_idChatShared.user_idFile.file_sizeChatJoinRequest.user_chat_idResponseParameters.migrate_to_chat_id
Should I make a PR for this?