- Notifications
You must be signed in to change notification settings - Fork5.7k
Closed
Description
What kind of feature are you missing? Where do you notice a shortcoming of PTB?
Next bot api update \o/
Important
- Comment here or in the dev group what you want to work on so we can assign you
- Please copy the relevant part of the checklist from[Feature] API 7.2 #4179 to your PR and make sure to cover everything :)
- Please base your branch on the
api-7.2
branch - If this is your first contribution, please be sure to read thecontribution guide and feel free to reach out with any questions viahttps://t.me/pythontelegrambotchannel/105
Describe the solution you'd like
Integration with Business Accounts [Taken by@harshil21]
- Added the classBusinessConnection and updates about the connection or disconnection of the bot to a business account, represented by the field business_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 classBusinessMessagesDeleted and the field deleted_business_messages in the classUpdate.
- Added the methodgetBusinessConnection.
Working on Behalf of Business Accounts [Taken by@harshil21]
- 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 [Taken by@aelkheir -#4183]
- Added the classBusinessIntro and the field business_intro to the classChat.
- Added the classBusinessLocation and the field business_location to the classChat.
- Added the classesBusinessOpeningHours andBusinessOpeningHoursInterval and the field business_opening_hours to the classChat.
Mixed-Format Sticker Packs [Taken by@harshil21]
- Removed the fields is_animated and is_video from the classStickerSet.
- Added the field format to the classInputSticker.
- 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 usingSendSticker.
Request Chat Improvements [Taken by@clot27]
- Added the fields request_name, request_username, and request_photo to the classKeyboardButtonRequestUsers.
- Added the fields request_title, request_username, and request_photo to the classKeyboardButtonRequestChat.
- Added the class SharedUser and replaced the field user_ids in the classUsersShared with the field users.
- Added the fields title, username, and photo to the classChatShared.
Other Changes
- Added the field is_from_offline to the classMessage. [Taken by@mahdyar -feat: add the field
is_from_offline
to the classMessage
#4189] - Added the field can_connect_to_business to the classUser [Taken by@harshil21].
- Added the field personal_chat to the classChat [Taken by@harshil21].
- Added the methodreplaceStickerInSet [Taken by@harshil21],
- Added the classBirthdate and the field birthdate to the classChat [Taken by@harshil21].
Added the field BiometricManager to the classWebApp.
Describe alternatives you've considered
If you want to contribute, you can start from theContribution Guide.
Additional context
Please comment below before start working on any part of the update so as to keep things in track and avoid double work.