core
core copied to clipboard
Bot API 7.2
https://core.telegram.org/bots/api-changelog#march-31-2024
Integration with Business Accounts
- [ ] Added the class
BusinessConnectionand updates about the connection or disconnection of the bot to a business account, represented by the fieldbusiness_connectionin the classUpdate. - [ ] Added updates about new messages in a business account connected to the bot, represented by the field
business_messagein the classUpdate. - [ ] Added updates about message edits in a business account connected to the bot, represented by the field
edited_business_messagein the classUpdate. - [ ] Added updates about message deletion in a business account connected to the bot, represented by the class
BusinessMessagesDeletedand the fielddeleted_business_messagesin the classUpdate. - [ ] Added the method
getBusinessConnection.
Working on Behalf of Business Accounts
- [ ] Added the parameter
business_connection_idto the methodssendMessage,sendPhoto,sendVideo,sendAnimation,sendAudio,sendDocument,sendSticker,sendVideoNote,sendVoice,sendLocation,sendVenue,sendContact,sendPoll,sendDice,sendGame, andsendMediaGroup. - [ ] Added the parameter
business_connection_idto the methodsendChatAction. - [ ] Added the field
business_connection_idto the classMessage. - [ ] Added the field
sender_business_botto the classMessage.
Information about Business Accounts
- [ ] Added the class
BusinessIntroand the fieldbusiness_introto the classChat. - [ ] Added the class
BusinessLocationand the fieldbusiness_locationto the classChat. - [ ] Added the classes
BusinessOpeningHoursandBusinessOpeningHoursIntervaland the fieldbusiness_opening_hoursto the classChat.
Mixed-Format Sticker Packs
- [ ] Removed the fields
is_animatedandis_videofrom the classStickerSet. - [ ] Added the field format to the class
InputSticker. - [ ] Removed the parameter
sticker_formatfrom the methodcreateNewStickerSet. - [ ] Added the parameter
formatto the methodsetStickerSetThumbnail. - [ ] Increased the maximum number of stickers in any regular and mask sticker set to 120.
- [ ] Allowed to upload WEBM stickers using
SendSticker.
Request Chat Improvements
- [ ] Added the fields
request_name,request_username, andrequest_phototo the classKeyboardButtonRequestUsers. - [ ] Added the fields
request_title,request_username, andrequest_phototo the classKeyboardButtonRequestChat. - [ ] Added the class
SharedUserand replaced the fielduser_idsin the classUsersSharedwith the fieldusers. - [ ] Added the fields
title,username, andphototo the classChatShared.
Other Changes
- [ ] Added the field
is_from_offlineto the classMessage. - [ ] Added the field
can_connect_to_businessto the classUser. - [ ] Added the field
personal_chatto the classChat. - [ ] Added the method
replaceStickerInSet, - [ ] Added the class
Birthdateand the fieldbirthdateto the classChat. - [ ] Added the field
BiometricManagerto the classWebApp.
@TiiFuchs DB nightmare incoming, gonna be good to not have to go there :innocent: