Open
Description
https://core.telegram.org/bots/api-changelog#march-31-2024
Integration with Business Accounts
- Added the class
BusinessConnection
and updates about the connection or disconnection of the bot to a business account, represented by the fieldbusiness_connection
in the classUpdate
. - Added updates about new messages in a business account connected to the bot, represented by the field
business_message
in the classUpdate
. - Added updates about message edits in a business account connected to the bot, represented by the field
edited_business_message
in the classUpdate
. - Added updates about message deletion in a business account connected to the bot, represented by the class
BusinessMessagesDeleted
and the fielddeleted_business_messages
in the classUpdate
. - Added the method
getBusinessConnection
.
Working on Behalf of Business Accounts
- Added the parameter
business_connection_id
to the methodssendMessage
,sendPhoto
,sendVideo
,sendAnimation
,sendAudio
,sendDocument
,sendSticker
,sendVideoNote
,sendVoice
,sendLocation
,sendVenue
,sendContact
,sendPoll
,sendDice
,sendGame
, andsendMediaGroup
. - Added the parameter
business_connection_id
to the methodsendChatAction
. - Added the field
business_connection_id
to the classMessage
. - Added the field
sender_business_bot
to the classMessage
.
Information about Business Accounts
- Added the class
BusinessIntro
and the fieldbusiness_intro
to the classChat
. - Added the class
BusinessLocation
and the fieldbusiness_location
to the classChat
. - Added the classes
BusinessOpeningHours
andBusinessOpeningHoursInterval
and the fieldbusiness_opening_hours
to the classChat
.
Mixed-Format Sticker Packs
- Removed the fields
is_animated
andis_video
from the classStickerSet
. - Added the field format to the class
InputSticker
. - Removed the parameter
sticker_format
from the methodcreateNewStickerSet
. - Added the parameter
format
to 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_photo
to the classKeyboardButtonRequestUsers
. - Added the fields
request_title
,request_username
, andrequest_photo
to the classKeyboardButtonRequestChat
. - Added the class
SharedUser
and replaced the fielduser_ids
in the classUsersShared
with the fieldusers
. - Added the fields
title
,username
, andphoto
to the classChatShared
.
Other Changes
- Added the field
is_from_offline
to the classMessage
. - Added the field
can_connect_to_business
to the classUser
. - Added the field
personal_chat
to the classChat
. - Added the method
replaceStickerInSet
, - Added the class
Birthdate
and the fieldbirthdate
to the classChat
. - Added the field
BiometricManager
to the classWebApp
.