Telegramium-5.53.0
Telegramium-5.53.0 released.
It supports all methods and entities of Telegram Bot API v5.3.
This MAJOR release introduces significant breaking changes.
Notable changes
- User identifiers are now stored as Longs.
Excerpt from Bot API official announcement for version 5.3
https://core.telegram.org/bots/api#june-25-2021
Personalized Commands
- Bots can now show lists of commands tailored to specific situations - including localized commands for users with different languages, as well as different commands based on chat type or for specific chats, and special lists of commands for chat admins.
- Added the class
BotCommandScope
, describing the scope to which bot commands apply. - Added the parameters
scope
andlanguage_code
to the methodsetMyCommands
to allow bots specify different commands for different chats and users. - Added the parameters
scope
andlanguage_code
to the methodgetMyCommands
. - Added the method
deleteMyCommands
to allow deletion of the bot's commands for the given scope and user language. - Improved visibility of bot commands in Telegram apps with the new 'Menu' button in chats with bots
Custom Placeholders
- Added the ability to specify a custom input field placeholder in the classes
ReplyKeyboardMarkup
andForceReply
.
And More
- Improved documentation of the class
ChatMember
by splitting it into 6 subclasses. - Renamed the method
kickChatMember
tobanChatMember
. - Renamed the method
getChatMembersCount
togetChatMemberCount
. - Values of the field
file_unique_id
in objects of the typePhotoSize
and of the fieldssmall_file_unique_id
andbig_file_unique_id
in objects of the typeChatPhoto
were changed.
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.