Added full support for Bot API 8.0 (#1606)

* Added full support of Bot API 8.0

* Added tests

* Reformat code

* Added changelog

* Bump API version
This commit is contained in:
Alex Root Junior 2024-11-17 23:18:42 +02:00 committed by GitHub
parent f2916ca03f
commit dfc88fc907
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
169 changed files with 1890 additions and 162 deletions

25
CHANGES/1606.feature.rst Normal file
View file

@ -0,0 +1,25 @@
Added full support for `Bot API 8.0 <https://core.telegram.org/bots/api-changelog#november-17-2024>`_
- Added the parameter :code:`subscription_period` to the method
:class:`aiogram.methods.create_invoice_link.CreateInvoiceLink`
to support the creation of links that are billed periodically.
- Added the parameter :code:`business_connection_id` to the method
:class:`aiogram.methods.create_invoice_link.CreateInvoiceLink`
to support the creation of invoice links on behalf of business accounts.
- Added the fields :code:`subscription_expiration_date`,
:code:`is_recurring` and :code:`is_first_recurring` to the class
:class:`aiogram.types.successful_payment.SuccessfulPayment`.
- Added the method :class:`aiogram.methods.edit_user_star_subscription.EditUserStarSubscription`.
- Added the field :code:`subscription_period` to the class
:class:`aiogram.types.transaction_partner_user.TransactionPartnerUser`.
- Added the method :class:`aiogram.methods.set_user_emoji_status.SetUserEmojiStatus`.
The user must allow the bot to manage their emoji status.
- Added the class :class:`aiogram.types.prepared_inline_message.PreparedInlineMessage`
and the method :class:`aiogram.methods.save_prepared_inline_message.SavePreparedInlineMessage`,
allowing bots to suggest users send a specific message from a Mini App via the method
:class:`aiogram.methods.share_message.ShareMessage`.
- Added the classes :class:`aiogram.types.gift.Gift` and :class:`aiogram.types.gifts.Gifts`
and the method :class:`aiogram.methods.get_available_gifts.GetAvailableGifts`,
allowing bots to get all gifts available for sending.
- Added the field :code:`gift` to the class
:class:`aiogram.types.transaction_partner_user.TransactionPartnerUser`.