- Notifications
You must be signed in to change notification settings - Fork5.7k
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 fromFull Support for Bot API 9.0 #4756 to your PR and make sure to cover everything :)
- Please base your branch on theapi_9.0 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
- check outthis wiki page for information about how we usually handle deprecations in the bot api
Business Accounts
- Added the classBusinessBotRights and replaced the field can_reply with the field rights of the typeBusinessBotRights in the classBusinessConnection.@Bibo-Joshi
- Added the methodreadBusinessMessage, allowing bots to mark incoming messages as read on behalf of a business account.@Bibo-JoshiApi 9.0 business methods #4757
- Added the methoddeleteBusinessMessages, allowing bots to delete messages on behalf of a business account.@Bibo-JoshiApi 9.0 business methods #4757
- Added the methodsetBusinessAccountName, allowing bots to change the first and last name of a managed business account.@Bibo-JoshiApi 9.0 business methods #4757
- Added the methodsetBusinessAccountUsername, allowing bots to change the username of a managed business account.@Bibo-JoshiApi 9.0 business methods #4757
- Added the methodsetBusinessAccountBio, allowing bots to change the bio of a managed business account.@Bibo-JoshiApi 9.0 business methods #4757
- Added the classInputProfilePhoto, describing a profile photo to be set.@Bibo-JoshiApi 9.0 profile photos #4766
- Added the methodssetBusinessAccountProfilePhoto andremoveBusinessAccountProfilePhoto, allowing bots to change the profile photo of a managed business account.@Bibo-JoshiApi 9.0 profile photos #4766
- Added the methodsetBusinessAccountGiftSettings, allowing bots to change the privacy settings pertaining to incoming gifts in a managed business account. (@aelkheir)Api 9.0 gifts #4763
- Added the classStarAmount and the methodgetBusinessAccountStarBalance, allowing bots to check the current Telegram Star balance of a managed business account.@aelkheirApi 9.0 business stars #4773
- Added the methodtransferBusinessAccountStars, allowing bots to transfer Telegram Stars from the balance of a managed business account to their own balance for withdrawal.@aelkheirApi 9.0 business stars #4773
- Added the classesOwnedGiftRegular,OwnedGiftUnique,OwnedGifts and the methodgetBusinessAccountGifts, allowing bots to fetch the list of gifts owned by a managed business account. (@aelkheir)Api 9.0 gifts #4763
- Added the methodconvertGiftToStars, allowing bots to convert gifts received by a managed business account to Telegram Stars. (@aelkheir)Api 9.0 gifts #4763
- Added the methodupgradeGift, allowing bots to upgrade regular gifts received by a managed business account to unique gifts. (@aelkheir)Api 9.0 gifts #4763
- Added the methodtransferGift, allowing bots to transfer unique gifts owned by a managed business account. (@aelkheir)Api 9.0 gifts #4763
- Added the classesInputStoryContentPhoto andInputStoryContentVideo representing the content of a story to post.@aelkheirApi 9.0 business stories #4769
- Added the classesStoryArea,StoryAreaPosition,LocationAddress,StoryAreaTypeLocation,StoryAreaTypeSuggestedReaction,StoryAreaTypeLink,StoryAreaTypeWeather andStoryAreaTypeUniqueGift, describing clickable active areas on stories.@aelkheirApi 9.0 business stories #4769
- Added the methodpostStory, allowing bots to post a story on behalf of a managed business account.@aelkheirApi 9.0 business stories #4769
- Added the methodeditStory, allowing bots to edit stories they had previously posted on behalf of a managed business account.@aelkheirApi 9.0 business stories #4769
- Added the methoddeleteStory, allowing bots to delete stories they had previously posted on behalf of a managed business account.@aelkheirApi 9.0 business stories #4769
Mini Apps
- Added the fieldDeviceStorage, allowing Mini Apps to use persistent local storage on the user's device.
- Added the fieldSecureStorage, allowing Mini Apps to use a secure local storage on the user's device for sensitive data.
Gifts (@aelkheir)#4763
- Added the classesUniqueGiftModel,UniqueGiftSymbol,UniqueGiftBackdropColors, andUniqueGiftBackdrop to describe the properties of a unique gift.
- Added the classUniqueGift describing a gift that was upgraded to a unique one.
- Added the classAcceptedGiftTypes 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 typeAcceptedGiftTypes in the classChatFullInfo.
- Added the classGiftInfo and the field gift to the classMessage, describing a service message about a regular gift that was sent or received.
- Added the classUniqueGiftInfo and the field unique_gift to the classMessage, describing a service message about a unique gift that was sent or received.
Telegram Premium@aelkheir
- Added the methodgiftPremiumSubscription, 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 classTransactionPartnerUser for transactions involving a Telegram Premium subscription purchased by the bot.Api 9.0 premium #4781
- Added the field transaction_type to the classTransactionPartnerUser, 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 classPaidMessagePriceChanged and the field paid_message_price_changed to the classMessage, 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 classMessage, containing the number ofTelegram Stars that were paid to send the message.Api 9.0 general #4782