Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(deps): update dependency aiogram to v3 #85

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 1, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
aiogram ==2.25.2 -> ==3.17.0 age adoption passing confidence

Release Notes

aiogram/aiogram (aiogram)

v3.17.0

Compare Source

====================

Features

  • Added full support of the Bot API 8.2 <https://core.telegram.org/bots/api-changelog#january-1-2025>_

    • Added the methods :class:aiogram.methods.verify_user.VerifyUser, :class:aiogram.methods.verify_chat.VerifyChat, :class:aiogram.methods.remove_user_verification.RemoveUserVerification and :class:aiogram.methods.remove_chat_verification.RemoveChatVerification, allowing bots to manage verifications on behalf of an organization.
    • Added the field :code:upgrade_star_count to the class :class:aiogram.types.gift.Gift.
    • Added the parameter :code:pay_for_upgrade to the method :class:aiogram.methods.send_gift.SendGift.
    • Removed the field :code:hide_url from the class :class:aiogram.types.inline_query_result_article.InlineQueryResultArticle. Pass an empty string as :code:url instead.
      #&#8203;1623 <https://github.com/aiogram/aiogram/issues/1623>_

v3.16.0

Compare Source

====================

Features

  • Added full support of Bot API 8.1 <https://core.telegram.org/bots/api-changelog#december-4-2024>_:

    • Added the field :code:nanostar_amount to the class :class:aiogram.types.star_transaction.StarTransaction.
    • Added the class :class:aiogram.types.transaction_partner_affiliate_program.TransactionPartnerAffiliateProgram for transactions pertaining to incoming affiliate commissions.
    • Added the class :class:aiogram.types.affiliate_info.AffiliateInfo and the field :code:affiliate to the class :class:aiogram.types.transaction_partner_user.TransactionPartnerUser, allowing bots to identify the relevant affiliate in transactions with an affiliate commission.
      #&#8203;1617 <https://github.com/aiogram/aiogram/issues/1617>_

Bugfixes

  • Corrected the exception text of aiogram.methods.base.TelegramMethod.__await__ method.
    #&#8203;1616 <https://github.com/aiogram/aiogram/issues/1616>_

Misc

  • Increased max :code:pydantic version support from “<2.10” to “<2.11”
    #&#8203;1607 <https://github.com/aiogram/aiogram/issues/1607>_
  • Fixed closing tag for :code:tg-emoji in the :class:aiogram.utils.text_decoration.HtmlDecoration: use the same constant as for tag opening
    #&#8203;1608 <https://github.com/aiogram/aiogram/issues/1608>_
  • Increased max :code:aiohttp version support from “<3.11” to “<3.12”
    #&#8203;1615 <https://github.com/aiogram/aiogram/issues/1615>_

v3.15.0

Compare Source

====================

Features

  • 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.
      #&#8203;1606 <https://github.com/aiogram/aiogram/issues/1606>_

v3.14.0

Compare Source

====================

Misc

  • Checked compatibility with Python 3.13 (added to the CI/CD processes),
    so now aiogram is totally compatible with it.

    Dropped compatibility with Python 3.8 due to this version being EOL <https://devguide.python.org/versions/>_.

    .. warning::

    In some cases you will need to have the installed compiler (Rust or C++)
    to install some of the dependencies to compile packages from source on pip install command.

    • If you are using Windows, you will need to have the Visual Studio <https://visualstudio.microsoft.com/visual-cpp-build-tools/>_ installed.
    • If you are using Linux, you will need to have the build-essential package installed.
    • If you are using macOS, you will need to have the Xcode <https://developer.apple.com/xcode/>_ installed.

    When developers of this dependencies will release new versions with precompiled wheels for Windows, Linux and macOS,
    this action will not be necessary anymore until the next version of the Python interpreter.
    #&#8203;1589 <https://github.com/aiogram/aiogram/issues/1589>_

  • Added business_connection_id to the :class:aiogram.types.message.Message API methods shortcuts.

    Integrated the :code:business_connection_id attribute into various message manipulation methods,
    ensuring consistent data handling. This update eliminates the need to pass the
    :code:business_connection_id as a parameter,
    instead directly accessing it from the instance attributes.
    #&#8203;1586 <https://github.com/aiogram/aiogram/issues/1586>_

Features

  • Add function get_value to all built-in storage implementations, FSMContext and SceneWizard
    #&#8203;1431 <https://github.com/aiogram/aiogram/issues/1431>_

  • Enhanced the inheritance of handlers and actions in :ref:Scenes <Scenes>.
    Refactored to eliminate the copying of previously connected handlers and actions from parent scenes.
    Now, handlers are dynamically rebuilt based on the current class, properly utilizing class inheritance and enabling handler overrides.

    That's mean that you can now override handlers and actions in the child scene, instead of copying and duplicating them.
    #&#8203;1583 <https://github.com/aiogram/aiogram/issues/1583>_

  • Added full support of Bot API 7.11 <https://core.telegram.org/bots/api-changelog#october-31-2024>_

    • Added the class :class:aiogram.types.copy_text_button.CopyTextButton
      and the field :code:copy_text in the class
      :class:aiogram.types.inline_keyboard_button.InlineKeyboardButton,
      allowing bots to send and receive inline buttons that copy arbitrary text.
    • Added the parameter :code:allow_paid_broadcast to the methods
      :class:aiogram.methods.send_message.SendMessage,
      :class:aiogram.methods.send_photo.SendPhoto,
      :class:aiogram.methods.send_video.SendVideo,
      :class:aiogram.methods.send_animation.SendAnimation,
      :class:aiogram.methods.send_audio.SendAudio,
      :class:aiogram.methods.send_document.SendDocument,
      :class:aiogram.methods.send_paid_media.SendPaidMedia,
      :class:aiogram.methods.send_sticker.SendSticker,
      :class:aiogram.methods.send_video_note.SendVideoNote,
      :class:aiogram.methods.send_voice.SendVoice,
      :class:aiogram.methods.send_location.SendLocation,
      :class:aiogram.methods.send_venue.SendVenue,
      :class:aiogram.methods.send_contact.SendContact,
      :class:aiogram.methods.send_poll.SendPoll,
      :class:aiogram.methods.send_dice.SendDice,
      :class:aiogram.methods.send_invoice.SendInvoice,
      :class:aiogram.methods.send_game.SendGame,
      :class:aiogram.methods.send_media_group.SendMediaGroup
      and :class:aiogram.methods.copy_message.CopyMessage.
    • Added the class
      :class:aiogram.types.transaction_partner_telegram_api.TransactionPartnerTelegramApi
      for transactions related to paid broadcasted messages.
    • Introduced the ability to add media to existing text messages using the method
      :class:aiogram.methods.edit_message_media.EditMessageMedia.
    • Added support for hashtag and cashtag entities with a specified chat username
      that opens a search for the relevant tag within the specified chat.
      #&#8203;1601 <https://github.com/aiogram/aiogram/issues/1601>_

Bugfixes

  • Fix PytestDeprecationWarning thrown by pytest-asyncio when running the tests
    #&#8203;1584 <https://github.com/aiogram/aiogram/issues/1584>_

  • Fixed customized serialization in the :class:aiogram.filters.callback_data.CallbackData factory.

    From now UUID will have 32 bytes length instead of 36 bytes (with no - separators) in the callback data representation.
    #&#8203;1602 <https://github.com/aiogram/aiogram/issues/1602>_

Improved Documentation

  • Add missing closing tag for bold.
    #&#8203;1599 <https://github.com/aiogram/aiogram/issues/1599>_

v3.13.1

Compare Source

====================

.. warning::

**Python 3.8 End of Life**: Python 3.8 will reach its end of life (EOL) soon and will no longer
be supported by aiogram in the next releases (1-2 months ETA).

Please upgrade to a newer version of Python to ensure compatibility and receive future updates.

Misc

  • Increase max pydantic version support "<2.9" -> "<2.10" (only For Python >=3.9)
    #&#8203;1576 <https://github.com/aiogram/aiogram/issues/1576>_
  • Bump aiofiles version upper bound to <24.2
    #&#8203;1577 <https://github.com/aiogram/aiogram/issues/1577>_

Bugfixes

  • Fixed Default object annotation resolution using pydantic
    #&#8203;1579 <https://github.com/aiogram/aiogram/issues/1579>_

v3.13.0

Compare Source

====================

Features

    • Added updates about purchased paid media, represented by the class
      :class:aiogram.types.paid_media_purchased.PaidMediaPurchased
      and the field :code:purchased_paid_media in the class
      :class:aiogram.types.update.Update.
    • Added the ability to specify a payload in
      :class:aiogram.methods.send_paid_media.SendPaidMedia that is received back by the bot in
      :class:aiogram.types.transaction_partner_user.TransactionPartnerUser
      and :code:purchased_paid_media updates.
    • Added the field :code:prize_star_count to the classes
      :class:aiogram.types.giveaway_created.GiveawayCreated,
      :class:aiogram.types.giveaway.Giveaway,
      :class:aiogram.types.giveaway_winners.GiveawayWinners
      and :class:aiogram.types.chat_boost_source_giveaway.ChatBoostSourceGiveaway.
    • Added the field :code:is_star_giveaway to the class
      :class:aiogram.types.giveaway_completed.GiveawayCompleted.
      #&#8203;1510 <https://github.com/aiogram/aiogram/issues/1510>_
  • Added missing method aliases such as .answer(), .reply(), and others to InaccessibleMessage.
    This change ensures consistency and improves usability by aligning the functionality of InaccessibleMessage with the Message type.
    #&#8203;1574 <https://github.com/aiogram/aiogram/issues/1574>_

Bugfixes

  • Fixed link preview options to use global defaults in various types and methods
    to use global defaults for link_preview_options.
    This change ensures consistency and enhances flexibility in handling link preview options
    across different components.
    #&#8203;1543 <https://github.com/aiogram/aiogram/issues/1543>_

v3.12.0

Compare Source

====================

Features

  • Added message_thread_id parameter to message.get_url().
    #&#8203;1451 <https://github.com/aiogram/aiogram/issues/1451>_

  • Added getting user from chat_boost with source ChatBoostSourcePremium in UserContextMiddleware for EventContext
    #&#8203;1474 <https://github.com/aiogram/aiogram/issues/1474>_

  • Added full support of Bot API 7.8 <https://core.telegram.org/bots/api-changelog#august-14-2024>_

    • Added the ability to send paid media to any chat.
    • Added the parameter :code:business_connection_id to the method
      :class:aiogram.methods.send_paid_media.SendPaidMedia,
      allowing bots to send paid media on behalf of a business account.
    • Added the field :code:paid_media to the class
      :class:aiogram.types.transaction_partner_user.TransactionPartnerUser
      for transactions involving paid media.
    • Added the method
      :class:aiogram.methods.create_chat_subscription_invite_link.CreateChatSubscriptionInviteLink,
      allowing bots to create subscription invite links.
    • Added the method
      :class:aiogram.methods.edit_chat_subscription_invite_link.EditChatSubscriptionInviteLink,
      allowing bots to edit the name of subscription invite links.
    • Added the field :code:until_date to the class
      :class:aiogram.types.chat_member_member.ChatMemberMember for members with an active subscription.
    • Added support for paid reactions and the class
      :class:aiogram.types.reaction_type_paid.ReactionTypePaid.
      #&#8203;1560 <https://github.com/aiogram/aiogram/issues/1560>_

Misc

  • Improved performance of StatesGroup
    #&#8203;1507 <https://github.com/aiogram/aiogram/issues/1507>_

v3.11.0

Compare Source

====================

Features

  • Added full support of Bot API 7.8 <https://core.telegram.org/bots/api-changelog#july-31-2024>_

    • Added the field :code:has_main_web_app to the class :class:aiogram.types.user.User,
      which is returned in the response to :class:aiogram.methods.get_me.GetMe.
    • Added the parameter :code:business_connection_id to the methods
      :class:aiogram.methods.pin_chat_message.PinChatMessage
      and :class:aiogram.methods.unpin_chat_message.UnpinChatMessage,
      allowing bots to manage pinned messages on behalf of a business account.
      #&#8203;1551 <https://github.com/aiogram/aiogram/issues/1551>_

Bugfixes

  • Fixed URL path in the "Open" button at the "demo/sendMessage" endpoint in the web_app example.
    #&#8203;1546 <https://github.com/aiogram/aiogram/issues/1546>_

Misc

  • Added method :func:aiogram.types.message.Message.as_reply_parameters.
    Replaced usage of the argument :code:reply_to_message_id with :code:reply_parameters
    in all Message reply methods.
    #&#8203;1538 <https://github.com/aiogram/aiogram/issues/1538>_
  • Added aiohttp v3.10 <https://github.com/aio-libs/aiohttp/releases/tag/v3.10.0>_ support.#​1548 #​1548`_

v3.10.0

Compare Source

====================

Features

  • Added full support of Bot API 7.7 <https://core.telegram.org/bots/api-changelog#july-7-2024>_

    • Added the class :class:aiogram.types.refunded_payment.RefundedPayment,
      containing information about a refunded payment.
    • Added the field :code:refunded_payment to the class
      :class:aiogram.types.message.Message,
      describing a service message about a refunded payment.
      #&#8203;1536 <https://github.com/aiogram/aiogram/issues/1536>_

v3.9.0

Compare Source

===================

Features

  • Added ChatMember resolution tool and updated 2.x migration guide.
    #&#8203;1525 <https://github.com/aiogram/aiogram/issues/1525>_

  • Added full support of Bot API 7.6 <https://core.telegram.org/bots/api-changelog#july-1-2024>_

    • Added the classes :class:aiogram.types.paid_media.PaidMedia,
      :class:aiogram.types.paid_media_info.PaidMediaInfo,
      :class:aiogram.types.paid_media_preview.PaidMediaPreview,
      :class:aiogram.types.paid_media_photo.PaidMediaPhoto
      and :class:aiogram.types.paid_media_video.PaidMediaVideo,
      containing information about paid media.
    • Added the method :class:aiogram.methods.send_paid_media.SendPaidMedia
      and the classes :class:aiogram.types.input_paid_media.InputPaidMedia,
      :class:aiogram.types.input_paid_media_photo.InputPaidMediaPhoto
      and :class:aiogram.types.input_paid_media_video.InputPaidMediaVideo,
      to support sending paid media.
    • Documented that the methods :class:aiogram.methods.copy_message.CopyMessage
      and :class:aiogram.methods.copy_messages.CopyMessages cannot be used to copy paid media.
    • Added the field :code:can_send_paid_media to the class
      :class:aiogram.types.chat_full_info.ChatFullInfo.
    • Added the field :code:paid_media to the classes
      :class:aiogram.types.message.Message and
      :class:aiogram.types.external_reply_info.ExternalReplyInfo.
    • Added the class
      :class:aiogram.types.transaction_partner_telegram_ads.TransactionPartnerTelegramAds,
      containing information about Telegram Star transactions involving the Telegram Ads Platform.
    • Added the field :code:invoice_payload to the class
      :class:aiogram.types.transaction_partner_user.TransactionPartnerUser,
      containing the bot-specified invoice payload.
    • Changed the default opening mode for Direct Link Mini Apps.
    • Added support for launching Web Apps via t.me link in the class
      :class:aiogram.types.menu_button_web_app.MenuButtonWebApp.
    • Added the field :code:section_separator_color to the class :code:ThemeParams.
      #&#8203;1533 <https://github.com/aiogram/aiogram/issues/1533>_

Bugfixes

  • Fixed event context resolving for the callback query that is coming from the business account
    #&#8203;1520 <https://github.com/aiogram/aiogram/issues/1520>_

v3.8.0

Compare Source

===================

Features

  • Added utility to safely deserialize any Telegram object or method to a JSON-compatible object (dict).
    (:ref:>> Read more <serialization-tool>)
    #&#8203;1450 <https://github.com/aiogram/aiogram/issues/1450>_

  • Added full support of Bot API 7.5 <https://core.telegram.org/bots/api-changelog#june-18-2024>_

    • Added the classes :class:aiogram.types.star_transactions.StarTransactions,
      :class:aiogram.types.star_transaction.StarTransaction,
      :class:aiogram.types.transaction_partner.TransactionPartner
      and :class:aiogram.types.revenue_withdrawal_state.RevenueWithdrawalState,
      containing information about Telegram Star transactions involving the bot.
    • Added the method :class:aiogram.methods.get_star_transactions.GetStarTransactions
      that can be used to get the list of all Telegram Star transactions for the bot.
    • Added support for callback buttons in
      :class:aiogram.types.inline_keyboard_markup.InlineKeyboardMarkup
      for messages sent on behalf of a business account.
    • Added support for callback queries originating from a message sent
      on behalf of a business account.
    • Added the parameter :code:business_connection_id to the methods
      :class:aiogram.methods.edit_message_text.EditMessageText,
      :class:aiogram.methods.edit_message_media.EditMessageMedia,
      :class:aiogram.methods.edit_message_caption.EditMessageCaption,
      :class:aiogram.methods.edit_message_live_location.EditMessageLiveLocation,
      :class:aiogram.methods.stop_message_live_location.StopMessageLiveLocation
      and :class:aiogram.methods.edit_message_reply_markup.EditMessageReplyMarkup,
      allowing the bot to edit business messages.
    • Added the parameter :code:business_connection_id to the method
      :class:aiogram.methods.stop_poll.StopPoll,
      allowing the bot to stop polls it sent on behalf of a business account.
      #&#8203;1518 <https://github.com/aiogram/aiogram/issues/1518>_

Bugfixes

  • Increased DNS cache ttl setting to aiohttp session as a workaround for DNS resolution issues in aiohttp.
    #&#8203;1500 <https://github.com/aiogram/aiogram/issues/1500>_

Improved Documentation

  • Fixed MongoStorage section in the documentation by adding extra dependency to ReadTheDocs configuration.
    #&#8203;1501 <https://github.com/aiogram/aiogram/issues/1501>_
  • Added information about dependency changes to the :code:2.x --> 3.x migration guide.
    #&#8203;1504 <https://github.com/aiogram/aiogram/issues/1504>_

Misc

  • [Only for contributors] Fail redis and mongo tests if incorrect URI provided + some storages tests refactoring

    If incorrect URIs provided to "--redis" and/or "--mongo" options tests should fail with errors instead of skipping.
    Otherwise the next scenario is possible:

    1. developer breaks RedisStorage and/or MongoStorage code
    2. tests are run with incorrect redis and/or mongo URIsprovided by "--redis" and "--mongo" options (for example, wrong port specified)
    3. tests pass because skipping doesn't fail tests run
    4. developer or reviewer doesn't notice that redis and/or mongo tests were skipped
    5. broken code gets in codebase

    Also some refactorings done (related with storages and storages tests).
    #&#8203;1510 <https://github.com/aiogram/aiogram/issues/1510>_

v3.7.0

Compare Source

===================

Features

  • Added new storage :code:aiogram.fsm.storage.MongoStorage for Finite State Machine based on Mongo DB (using :code:motor library)
    #&#8203;1434 <https://github.com/aiogram/aiogram/issues/1434>_
  • Added full support of Bot API 7.4 <https://core.telegram.org/bots/api-changelog#may-28-2024>_
    #&#8203;1498 <https://github.com/aiogram/aiogram/issues/1498>_

Bugfixes

  • Fixed wrong :code:MarkdownV2 custom emoji parsing in :code:aiogram.utils.text_decorations
    #&#8203;1496 <https://github.com/aiogram/aiogram/issues/1496>_

Deprecations and Removals

  • Removed deprecated arguments from Bot class
    :code:parse_mode, :code:disable_web_page_preview, :code:protect_content as previously announced in v3.4.0.
    #&#8203;1494 <https://github.com/aiogram/aiogram/issues/1494>_

Misc

  • Improved code consistency and readability in code examples by refactoring imports, adjusting the base webhook URL, modifying bot instance initialization to utilize DefaultBotProperties, and updating router message handlers.
    #&#8203;1482 <https://github.com/aiogram/aiogram/issues/1482>_

v3.6.0

Compare Source

===================

Features

  • Added full support of Bot API 7.3 <https://core.telegram.org/bots/api-changelog#may-6-2024>_
    #&#8203;1480 <https://github.com/aiogram/aiogram/issues/1480>_

Improved Documentation

  • Added telegram objects transformation block in 2.x -> 3.x migration guide
    #&#8203;1412 <https://github.com/aiogram/aiogram/issues/1412>_

v3.5.0

Compare Source

===================

Features

  • Added message_thread_id parameter to ChatActionSender class methods.
    #&#8203;1437 <https://github.com/aiogram/aiogram/issues/1437>_

  • Added context manager interface to Bot instance, from now you can use:

    .. code-block:: python

    async with Bot(...) as bot:
        ...
    

    instead of

    .. code-block:: python

    async with Bot(...).context() as bot:
        ...
    

    #&#8203;1468 <https://github.com/aiogram/aiogram/issues/1468>_

Bugfixes

    • WebAppUser Class Fields: Added missing is_premium, added_to_attachment_menu, and allows_write_to_pm fields to WebAppUser class to align with the Telegram API.

    • WebAppChat Class Implementation: Introduced the WebAppChat class with all its fields (id, type, title, username, and photo_url) as specified in the Telegram API, which was previously missing from the library.

    • WebAppInitData Class Fields: Included previously omitted fields in the WebAppInitData class: chat, chat_type, chat_instance, to match the official documentation for a complete Telegram Web Apps support.
      #&#8203;1424 <https://github.com/aiogram/aiogram/issues/1424>_

  • Fixed poll answer FSM context by handling :code:voter_chat for :code:poll_answer event
    #&#8203;1436 <https://github.com/aiogram/aiogram/issues/1436>_
  • Added missing error handling to :code:_background_feed_update (when in :code:handle_in_background=True webhook mode)
    #&#8203;1458 <https://github.com/aiogram/aiogram/issues/1458>_

Improved Documentation

  • Added WebAppChat class to WebApp docs, updated uk_UA localisation of WebApp docs.
    #&#8203;1433 <https://github.com/aiogram/aiogram/issues/1433>_

Misc

  • Added full support of Bot API 7.2 <https://core.telegram.org/bots/api-changelog#march-31-2024>_
    #&#8203;1444 <https://github.com/aiogram/aiogram/issues/1444>_
  • Loosened pydantic version upper restriction from <2.7 to <2.8
    #&#8203;1460 <https://github.com/aiogram/aiogram/issues/1460>_

v3.4.1

Compare Source

===================

Bugfixes

  • Fixed JSON serialization of the :code:LinkPreviewOptions class while it is passed
    as bot-wide default options.
    #&#8203;1418 <https://github.com/aiogram/aiogram/issues/1418>_

v3.4.0

Compare Source

===================

Features

  • Reworked bot-wide globals like :code:parse_mode, :code:disable_web_page_preview, and others to be more flexible.

    .. warning::

    Note that the old way of setting these global bot properties is now deprecated and will be removed in the next major release.
    

    #&#8203;1392 <https://github.com/aiogram/aiogram/issues/1392>_

  • A new enum :code:KeyboardButtonPollTypeType for :code:KeyboardButtonPollTypeType.type field has bed added.
    #&#8203;1398 <https://github.com/aiogram/aiogram/issues/1398>_

  • Added full support of Bot API 7.1 <https://core.telegram.org/bots/api-changelog#february-16-2024>_

    • Added support for the administrator rights :code:can_post_stories, :code:can_edit_stories, :code:can_delete_stories in supergroups.
    • Added the class :code:ChatBoostAdded and the field :code:boost_added to the class :code:Message for service messages about a user boosting a chat.
    • Added the field :code:sender_boost_count to the class :code:Message.
    • Added the field :code:reply_to_story to the class :code:Message.
    • Added the fields :code:chat and :code:id to the class :code:Story.
    • Added the field :code:unrestrict_boost_count to the class :code:Chat.
    • Added the field :code:custom_emoji_sticker_set_name to the class :code:Chat.
      #&#8203;1417 <https://github.com/aiogram/aiogram/issues/1417>_

Bugfixes

  • Update KeyboardBuilder utility, fixed type-hints for button method, adjusted limits of the different markup types to real world values.
    #&#8203;1399 <https://github.com/aiogram/aiogram/issues/1399>_
  • Added new :code:reply_parameters param to :code:message.send_copy because it hasn't been added there
    #&#8203;1403 <https://github.com/aiogram/aiogram/issues/1403>_

Improved Documentation

  • Add notion "Working with plural forms" in documentation Utils -> Translation
    #&#8203;1395 <https://github.com/aiogram/aiogram/issues/1395>_

v3.3.0

Compare Source

===================

Features

  • Added full support of Bot API 7.0 <https://core.telegram.org/bots/api-changelog#december-29-2023>_

    • Reactions
    • Replies 2.0
    • Link Preview Customization
    • Block Quotation
    • Multiple Message Actions
    • Requests for multiple users
    • Chat Boosts
    • Giveaway
    • Other changes
      #&#8203;1387 <https://github.com/aiogram/aiogram/issues/1387>_

v3.2.0

Compare Source

===================

Features

  • Introduced Scenes feature that helps you to simplify user interactions using Finite State Machine.
    Read more about 👉 :ref:Scenes <Scenes>.
    #&#8203;1280 <https://github.com/aiogram/aiogram/issues/1280>_
  • Added the new FSM strategy :code:CHAT_TOPIC, which sets the state for the entire topic in the chat, also works in private messages and regular groups without topics.
    #&#8203;1343 <https://github.com/aiogram/aiogram/issues/1343>_

Bugfixes

  • Fixed :code:parse_mode argument in the in :code:Message.send_copy shortcut. Disable by default.
    #&#8203;1332 <https://github.com/aiogram/aiogram/issues/1332>_
  • Added ability to get handler flags from filters.
    #&#8203;1360 <https://github.com/aiogram/aiogram/issues/1360>_
  • Fixed a situation where a :code:CallbackData could not be parsed without a default value.
    #&#8203;1368 <https://github.com/aiogram/aiogram/issues/1368>_

Improved Documentation

  • Corrected grammatical errors, improved sentence structures, translation for migration 2.x-3.x
    #&#8203;1302 <https://github.com/aiogram/aiogram/issues/1302>_
  • Minor typo correction, specifically in module naming + some grammar.
    #&#8203;1340 <https://github.com/aiogram/aiogram/issues/1340>_
  • Added CITATION.cff file for automatic academic citation generation.
    Now you can copy citation from the GitHub page and paste it into your paper.
    #&#8203;1351 <https://github.com/aiogram/aiogram/issues/1351>_
  • Minor typo correction in middleware docs.
    #&#8203;1353 <https://github.com/aiogram/aiogram/issues/1353>_

Misc

  • Fixed ResourceWarning in the tests, reworked :code:RedisEventsIsolation fixture to use Redis connection from :code:RedisStorage
    #&#8203;1320 <https://github.com/aiogram/aiogram/issues/1320>_

  • Updated dependencies, bumped minimum required version:

    • :code:magic-filter - fixed .resolve operation
    • :code:pydantic - fixed compatibility (broken in 2.4)
    • :code:aiodns - added new dependency to the :code:fast extras (:code:pip install aiogram[fast])
    • others...
      #&#8203;1327 <https://github.com/aiogram/aiogram/issues/1327>_
  • Prevent update handling task pointers from being garbage collected, backport from 2.x
    #&#8203;1331 <https://github.com/aiogram/aiogram/issues/1331>_

  • Updated :code:typing-extensions package version range in dependencies to fix compatibility with :code:FastAPI
    #&#8203;1347 <https://github.com/aiogram/aiogram/issues/1347>_

  • Introduce Python 3.12 support
    #&#8203;1354 <https://github.com/aiogram/aiogram/issues/1354>_

  • Speeded up CallableMixin processing by caching references to nested objects and simplifying kwargs assembly.
    #&#8203;1357 <https://github.com/aiogram/aiogram/issues/1357>_

  • Added :code:pydantic v2.5 support.
    #&#8203;1361 <https://github.com/aiogram/aiogram/issues/1361>_

  • Updated :code:thumbnail fields type to :code:InputFile only
    #&#8203;1372 <https://github.com/aiogram/aiogram/issues/1372>_

v3.1.1

Compare Source

===================

Bugfixes

  • Fixed pydantic version <2.4, since 2.4 has breaking changes.
    #&#8203;1322 <https://github.com/aiogram/aiogram/issues/1322>_

v3.1.0

Compare Source

===================

Features

  • Added support for custom encoders/decoders for payload (and also for deep-linking).
    #&#8203;1262 <https://github.com/aiogram/aiogram/issues/1262>_
  • Added :class:aiogram.utils.input_media.MediaGroupBuilder for media group construction.
    #&#8203;1293 <https://github.com/aiogram/aiogram/issues/1293>_
  • Added full support of Bot API 6.9 <https://core.telegram.org/bots/api-changelog#september-22-2023>_
    #&#8203;1319 <https://github.com/aiogram/aiogram/issues/1319>_

Bugfixes

  • Added actual param hints for InlineKeyboardBuilder and ReplyKeyboardBuilder.
    #&#8203;1303 <https://github.com/aiogram/aiogram/issues/1303>_
  • Fixed priority of events isolation, now user state will be loaded only after lock is acquired
    #&#8203;1317 <https://github.com/aiogram/aiogram/issues/1317>_

v3.0.0

Compare Source

===================

Bugfixes

  • Replaced :code:datetime.datetime with DateTime type wrapper across types to make dumped JSONs object
    more compatible with data that is sent by Telegram.
    #&#8203;1277 <https://github.com/aiogram/aiogram/issues/1277>_
  • Fixed magic :code:.as_(...) operation for values that can be interpreted as False (e.g. 0).
    #&#8203;1281 <https://github.com/aiogram/aiogram/issues/1281>_
  • Italic markdown from utils now uses correct decorators
    #&#8203;1282 <https://github.com/aiogram/aiogram/issues/1282>_
  • Fixed method :code:Message.send_copy for stickers.
    #&#8203;1284 <https://github.com/aiogram/aiogram/issues/1284>_
  • Fixed :code:Message.send_copy method, which was not working properly with stories, so not you can copy stories too (forwards messages).
    #&#8203;1286 <https://github.com/aiogram/aiogram/issues/1286>_
  • Fixed error overlapping when validation error is caused by remove_unset root validator in base types and methods.
    #&#8203;1290 <https://github.com/aiogram/aiogram/issues/1290>_

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/aiogram-3.x branch 2 times, most recently from 5ff709b to d67ff8d Compare September 25, 2023 16:30
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch 2 times, most recently from a9495e5 to 77072e5 Compare October 7, 2023 18:38
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch from 77072e5 to 9e2b15a Compare November 25, 2023 00:25
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch from 9e2b15a to 40e5c2a Compare December 31, 2023 00:13
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch 2 times, most recently from 937013a to de7dde3 Compare February 17, 2024 10:59
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch from de7dde3 to edcaf17 Compare April 23, 2024 00:23
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch from edcaf17 to 989c49f Compare May 6, 2024 21:46
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch from 989c49f to d691a02 Compare May 31, 2024 19:15
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch from d691a02 to 1f4b19e Compare June 19, 2024 01:40
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch 2 times, most recently from 3649ea7 to a72389b Compare July 7, 2024 16:42
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch 2 times, most recently from 80ad823 to ce35582 Compare August 16, 2024 01:18
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch from ce35582 to ff73ec1 Compare September 8, 2024 12:37
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch from ff73ec1 to d3475ee Compare September 18, 2024 20:16
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch from d3475ee to 643f90b Compare November 2, 2024 15:40
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch from 643f90b to 3477f2e Compare November 17, 2024 21:49
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch from 3477f2e to 2e71e07 Compare December 21, 2024 22:23
@renovate renovate bot force-pushed the renovate/aiogram-3.x branch from 2e71e07 to b6948ed Compare January 2, 2025 04:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants