Title: Full Support for Bot API 9.0 · Issue #4754 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: Full Support for Bot API 9.0 · Issue #4754 · python-telegram-bot/python-telegram-bot
X Title: Full Support for Bot API 9.0 · Issue #4754 · python-telegram-bot/python-telegram-bot
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 #4756 to your PR and make sure to cover everything :) Please base your branch on the...
Open Graph 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 #4756 to your PR and make sure to cover ever...
X 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 #4756 to your PR and make sure to cover ever...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/4754
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Full Support for Bot API 9.0","articleBody":"## Bot API 9.0\n\n\u003e [!IMPORTANT]\n\u003e - Comment here or in the dev group what you want to work on so we can assign you\n\u003e - Please copy the relevant part of the checklist from https://github.com/python-telegram-bot/python-telegram-bot/issues/4756 to your PR and make sure to cover everything :)\n\u003e - Please base your branch on the [api_9.0](https://github.com/python-telegram-bot/python-telegram-bot/tree/api_9.0) branch\n\u003e - If this is your first contribution, please be sure to read the [contribution guide](https://docs.python-telegram-bot.org/en/stable/contributing.html) \u003e and feel free to reach out with any questions via https://t.me/pythontelegrambotchannel/105\n\u003e - check out [this wiki page](https://github.com/python-telegram-bot/python-telegram-bot/wiki/Bot-API-Backward-Compatibility) for information about how we usually handle deprecations in the bot api\n\n### Business Accounts\n\n- [x] Added the class [BusinessBotRights](https://core.telegram.org/bots/api#businessbotrights) and replaced the field can_reply with the field rights of the type [BusinessBotRights](https://core.telegram.org/bots/api#businessbotrights) in the class [BusinessConnection](https://core.telegram.org/bots/api#businessconnection). @Bibo-Joshi \n- [x] Added the method [readBusinessMessage](https://core.telegram.org/bots/api#readbusinessmessage), allowing bots to mark incoming messages as read on behalf of a business account. @Bibo-Joshi #4757 \n- [x] Added the method [deleteBusinessMessages](https://core.telegram.org/bots/api#deletebusinessmessages), allowing bots to delete messages on behalf of a business account. @Bibo-Joshi #4757 \n- [x] Added the method [setBusinessAccountName](https://core.telegram.org/bots/api#setbusinessaccountname), allowing bots to change the first and last name of a managed business account. @Bibo-Joshi #4757 \n- [x] Added the method [setBusinessAccountUsername](https://core.telegram.org/bots/api#setbusinessaccountusername), allowing bots to change the username of a managed business account. @Bibo-Joshi #4757 \n- [x] Added the method [setBusinessAccountBio](https://core.telegram.org/bots/api#setbusinessaccountbio), allowing bots to change the bio of a managed business account. @Bibo-Joshi #4757 \n- [x] Added the class [InputProfilePhoto](https://core.telegram.org/bots/api#inputprofilephoto), describing a profile photo to be set. @Bibo-Joshi #4766\n- [x] Added the methods [setBusinessAccountProfilePhoto](https://core.telegram.org/bots/api#setbusinessaccountprofilephoto) and [removeBusinessAccountProfilePhoto](https://core.telegram.org/bots/api#removebusinessaccountprofilephoto), allowing bots to change the profile photo of a managed business account. @Bibo-Joshi #4766 \n- [x] Added the method [setBusinessAccountGiftSettings](https://core.telegram.org/bots/api#setbusinessaccountgiftsettings), allowing bots to change the privacy settings pertaining to incoming gifts in a managed business account. (@aelkheir) #4763\n- [x] Added the class [StarAmount](https://core.telegram.org/bots/api#staramount) and the method [getBusinessAccountStarBalance](https://core.telegram.org/bots/api#getbusinessaccountstarbalance), allowing bots to check the current Telegram Star balance of a managed business account. @aelkheir #4773\n- [x] Added the method [transferBusinessAccountStars](https://core.telegram.org/bots/api#transferbusinessaccountstars), allowing bots to transfer Telegram Stars from the balance of a managed business account to their own balance for withdrawal. @aelkheir #4773\n- [x] Added the classes [OwnedGiftRegular](https://core.telegram.org/bots/api#ownedgiftregular), [OwnedGiftUnique](https://core.telegram.org/bots/api#ownedgiftunique), [OwnedGifts](https://core.telegram.org/bots/api#ownedgifts) and the method [getBusinessAccountGifts](https://core.telegram.org/bots/api#getbusinessaccountgifts), allowing bots to fetch the list of gifts owned by a managed business account. (@aelkheir) #4763\n- [x] Added the method [convertGiftToStars](https://core.telegram.org/bots/api#convertgifttostars), allowing bots to convert gifts received by a managed business account to Telegram Stars. (@aelkheir) #4763\n- [x] Added the method [upgradeGift](https://core.telegram.org/bots/api#upgradegift), allowing bots to upgrade regular gifts received by a managed business account to unique gifts. (@aelkheir) #4763\n- [x] Added the method [transferGift](https://core.telegram.org/bots/api#transfergift), allowing bots to transfer unique gifts owned by a managed business account. (@aelkheir) #4763\n- [x] Added the classes [InputStoryContentPhoto](https://core.telegram.org/bots/api#inputstorycontentphoto) and [InputStoryContentVideo](https://core.telegram.org/bots/api#inputstorycontentvideo) representing the content of a story to post. @aelkheir #4769\n- [x] Added the classes [StoryArea](https://core.telegram.org/bots/api#storyarea), [StoryAreaPosition](https://core.telegram.org/bots/api#storyareaposition), [LocationAddress](https://core.telegram.org/bots/api#locationaddress), [StoryAreaTypeLocation](https://core.telegram.org/bots/api#storyareatypelocation), [StoryAreaTypeSuggestedReaction](https://core.telegram.org/bots/api#storyareatypesuggestedreaction), [StoryAreaTypeLink](https://core.telegram.org/bots/api#storyareatypelink), [StoryAreaTypeWeather](https://core.telegram.org/bots/api#storyareatypeweather) and [StoryAreaTypeUniqueGift](https://core.telegram.org/bots/api#storyareatypeuniquegift), describing clickable active areas on stories. @aelkheir #4769\n- [x] Added the method [postStory](https://core.telegram.org/bots/api#poststory), allowing bots to post a story on behalf of a managed business account. @aelkheir #4769\n- [x] Added the method [editStory](https://core.telegram.org/bots/api#editstory), allowing bots to edit stories they had previously posted on behalf of a managed business account. @aelkheir #4769\n- [x] Added the method [deleteStory](https://core.telegram.org/bots/api#deletestory), allowing bots to delete stories they had previously posted on behalf of a managed business account. @aelkheir #4769\n\n### Mini Apps\n\n- [x] Added the field [DeviceStorage](https://core.telegram.org/bots/webapps#devicestorage), allowing Mini Apps to use persistent local storage on the user's device.\n- [x] Added the field [SecureStorage](https://core.telegram.org/bots/webapps#securestorage), allowing Mini Apps to use a secure local storage on the user's device for sensitive data.\n\n### Gifts (@aelkheir) #4763\n- [x] Added the classes [UniqueGiftModel](https://core.telegram.org/bots/api#uniquegiftmodel), [UniqueGiftSymbol](https://core.telegram.org/bots/api#uniquegiftsymbol), [UniqueGiftBackdropColors](https://core.telegram.org/bots/api#uniquegiftbackdropcolors), and [UniqueGiftBackdrop](https://core.telegram.org/bots/api#uniquegiftbackdrop) to describe the properties of a unique gift. \n- [x] Added the class [UniqueGift](https://core.telegram.org/bots/api#uniquegift) describing a gift that was upgraded to a unique one.\n- [x] Added the class [AcceptedGiftTypes](https://core.telegram.org/bots/api#acceptedgifttypes) describing the types of gifts that are accepted by a user or a chat.\n- [x] Replaced the field can_send_gift with the field accepted_gift_types of the type [AcceptedGiftTypes](https://core.telegram.org/bots/api#acceptedgifttypes) in the class [ChatFullInfo](https://core.telegram.org/bots/api#chatfullinfo).\n- [x] Added the class [GiftInfo](https://core.telegram.org/bots/api#giftinfo) and the field gift to the class [Message](https://core.telegram.org/bots/api#message), describing a service message about a regular gift that was sent or received.\n- [x] Added the class [UniqueGiftInfo](https://core.telegram.org/bots/api#uniquegiftinfo) and the field unique_gift to the class [Message](https://core.telegram.org/bots/api#message), describing a service message about a unique gift that was sent or received.\n\n### Telegram Premium @aelkheir\n\n- [x] Added the method [giftPremiumSubscription](https://core.telegram.org/bots/api#giftpremiumsubscription), allowing bots to gift a user a Telegram Premium subscription paid in Telegram Stars. #4781\n- [x] Added the field premium_subscription_duration to the class [TransactionPartnerUser](https://core.telegram.org/bots/api#transactionpartneruser) for transactions involving a Telegram Premium subscription purchased by the bot. #4781\n- [x] Added the field transaction_type to the class [TransactionPartnerUser](https://core.telegram.org/bots/api#transactionpartneruser), simplifying the differentiation and processing of all transaction types. #4781\n\n### General @Bibo-Joshi \n\n- [x] Increased the maximum price for paid media to 10000 Telegram Stars. #4782\n- [x] Increased the maximum price for a subscription period to 10000 Telegram Stars. #4782\n- [x] Added the class [PaidMessagePriceChanged](https://core.telegram.org/bots/api#paidmessagepricechanged) and the field paid_message_price_changed to the class [Message](https://core.telegram.org/bots/api#message), describing a service message about a price change for paid messages sent to the chat. #4782\n- [x] Added the field paid_star_count to the class [Message](https://core.telegram.org/bots/api#message), containing the number of [Telegram Stars](https://telegram.org/blog/telegram-stars) that were paid to send the message. #4782","author":{"url":"https://github.com/Bibo-Joshi","@type":"Person","name":"Bibo-Joshi"},"datePublished":"2025-04-11T16:38:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/4754/python-telegram-bot/issues/4754"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:134bb7e1-e792-ff5c-6571-0975656d6390 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86A0:3213A4:AE1ED2:E5608D:6A5B63C1 |
| html-safe-nonce | 89b5f5caaa79c4e9ae1dc187b9db45367a76abbf72fc52841e8a15340729f56c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkEwOjMyMTNBNDpBRTFFRDI6RTU2MDhEOjZBNUI2M0MxIiwidmlzaXRvcl9pZCI6IjgwNjY4MzI5MzQ2MTg0ODk3OTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e02d3e66bb1e80ee1574e186c2d195c2651013149941c4667b5cc3790c13627d |
| hovercard-subject-tag | issue:2989168310 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-telegram-bot/python-telegram-bot/4754/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d17bb803cfa9d868960d6960d731cf6ea1185b455a1f3cec1b74c2f37db57845/python-telegram-bot/python-telegram-bot/issues/4754 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d17bb803cfa9d868960d6960d731cf6ea1185b455a1f3cec1b74c2f37db57845/python-telegram-bot/python-telegram-bot/issues/4754 |
| og:image:alt | 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 #4756 to your PR and make sure to cover ever... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Bibo-Joshi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/python-telegram-bot/python-telegram-bot git https://github.com/python-telegram-bot/python-telegram-bot.git |
| octolytics-dimension-user_id | 16178365 |
| octolytics-dimension-user_login | python-telegram-bot |
| octolytics-dimension-repository_id | 38696925 |
| octolytics-dimension-repository_nwo | python-telegram-bot/python-telegram-bot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38696925 |
| octolytics-dimension-repository_network_root_nwo | python-telegram-bot/python-telegram-bot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width