-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Labels
⚙️ bot-apiaffected functionality: bot-apiaffected functionality: bot-api
Description
Bot API 9.0
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 Full Support for Bot API 9.0 #4756 to your PR and make sure to cover everything :)
- Please base your branch on the api_9.0 branch
- If this is your first contribution, please be sure to read the contribution guide > and feel free to reach out with any questions via https://t.me/pythontelegrambotchannel/105
- check out this wiki page for information about how we usually handle deprecations in the bot api
Business Accounts
- Added the class BusinessBotRights and replaced the field can_reply with the field rights of the type BusinessBotRights in the class BusinessConnection. @Bibo-Joshi
- Added the method readBusinessMessage, allowing bots to mark incoming messages as read on behalf of a business account. @Bibo-Joshi Api 9.0 business methods #4757
- Added the method deleteBusinessMessages, allowing bots to delete messages on behalf of a business account. @Bibo-Joshi Api 9.0 business methods #4757
- Added the method setBusinessAccountName, allowing bots to change the first and last name of a managed business account. @Bibo-Joshi Api 9.0 business methods #4757
- Added the method setBusinessAccountUsername, allowing bots to change the username of a managed business account. @Bibo-Joshi Api 9.0 business methods #4757
- Added the method setBusinessAccountBio, allowing bots to change the bio of a managed business account. @Bibo-Joshi Api 9.0 business methods #4757
- Added the class InputProfilePhoto, describing a profile photo to be set. @Bibo-Joshi Api 9.0 profile photos #4766
- Added the methods setBusinessAccountProfilePhoto and removeBusinessAccountProfilePhoto, allowing bots to change the profile photo of a managed business account. @Bibo-Joshi Api 9.0 profile photos #4766
- Added the method setBusinessAccountGiftSettings, allowing bots to change the privacy settings pertaining to incoming gifts in a managed business account. (@aelkheir) Api 9.0 gifts #4763
- Added the class StarAmount and the method getBusinessAccountStarBalance, allowing bots to check the current Telegram Star balance of a managed business account. @aelkheir Api 9.0 business stars #4773
- Added the method transferBusinessAccountStars, allowing bots to transfer Telegram Stars from the balance of a managed business account to their own balance for withdrawal. @aelkheir Api 9.0 business stars #4773
- Added the classes OwnedGiftRegular, OwnedGiftUnique, OwnedGifts and the method getBusinessAccountGifts, allowing bots to fetch the list of gifts owned by a managed business account. (@aelkheir) Api 9.0 gifts #4763
- Added the method convertGiftToStars, allowing bots to convert gifts received by a managed business account to Telegram Stars. (@aelkheir) Api 9.0 gifts #4763
- Added the method upgradeGift, allowing bots to upgrade regular gifts received by a managed business account to unique gifts. (@aelkheir) Api 9.0 gifts #4763
- Added the method transferGift, allowing bots to transfer unique gifts owned by a managed business account. (@aelkheir) Api 9.0 gifts #4763
- Added the classes InputStoryContentPhoto and InputStoryContentVideo representing the content of a story to post. @aelkheir Api 9.0 business stories #4769
- Added the classes StoryArea, StoryAreaPosition, LocationAddress, StoryAreaTypeLocation, StoryAreaTypeSuggestedReaction, StoryAreaTypeLink, StoryAreaTypeWeather and StoryAreaTypeUniqueGift, describing clickable active areas on stories. @aelkheir Api 9.0 business stories #4769
- Added the method postStory, allowing bots to post a story on behalf of a managed business account. @aelkheir Api 9.0 business stories #4769
- Added the method editStory, allowing bots to edit stories they had previously posted on behalf of a managed business account. @aelkheir Api 9.0 business stories #4769
- Added the method deleteStory, allowing bots to delete stories they had previously posted on behalf of a managed business account. @aelkheir Api 9.0 business stories #4769
Mini Apps
- Added the field DeviceStorage, allowing Mini Apps to use persistent local storage on the user's device.
- Added the field SecureStorage, allowing Mini Apps to use a secure local storage on the user's device for sensitive data.
Gifts (@aelkheir) #4763
- Added the classes UniqueGiftModel, UniqueGiftSymbol, UniqueGiftBackdropColors, and UniqueGiftBackdrop to describe the properties of a unique gift.
- Added the class UniqueGift describing a gift that was upgraded to a unique one.
- Added the class AcceptedGiftTypes describing the types of gifts that are accepted by a user or a chat.
- Replaced the field can_send_gift with the field accepted_gift_types of the type AcceptedGiftTypes in the class ChatFullInfo.
- Added the class GiftInfo and the field gift to the class Message, describing a service message about a regular gift that was sent or received.
- Added the class UniqueGiftInfo and the field unique_gift to the class Message, describing a service message about a unique gift that was sent or received.
Telegram Premium @aelkheir
- Added the method giftPremiumSubscription, allowing bots to gift a user a Telegram Premium subscription paid in Telegram Stars. Api 9.0 premium #4781
- Added the field premium_subscription_duration to the class TransactionPartnerUser for transactions involving a Telegram Premium subscription purchased by the bot. Api 9.0 premium #4781
- Added the field transaction_type to the class TransactionPartnerUser, simplifying the differentiation and processing of all transaction types. Api 9.0 premium #4781
General @Bibo-Joshi
- Increased the maximum price for paid media to 10000 Telegram Stars. Api 9.0 general #4782
- Increased the maximum price for a subscription period to 10000 Telegram Stars. Api 9.0 general #4782
- Added the class PaidMessagePriceChanged and the field paid_message_price_changed to the class Message, describing a service message about a price change for paid messages sent to the chat. Api 9.0 general #4782
- Added the field paid_star_count to the class Message, containing the number of Telegram Stars that were paid to send the message. Api 9.0 general #4782
Metadata
Metadata
Assignees
Labels
⚙️ bot-apiaffected functionality: bot-apiaffected functionality: bot-api