From 0c69c549766dbec85f5b4e62a94fe16caf3aa2a0 Mon Sep 17 00:00:00 2001 From: JRoot Junior Date: Mon, 2 Mar 2026 21:59:50 +0200 Subject: [PATCH] Update changelog with Telegram Bot API 9.5 changes --- CHANGES/1780.feature.rst | 1 - CHANGES/1780.misc.rst | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) delete mode 100644 CHANGES/1780.feature.rst create mode 100644 CHANGES/1780.misc.rst diff --git a/CHANGES/1780.feature.rst b/CHANGES/1780.feature.rst deleted file mode 100644 index d2e5b40e..00000000 --- a/CHANGES/1780.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Added full Telegram Bot API 9.5 support across aiogram: new API methods (``sendChecklist``, ``sendMessageDraft``, ``setChatMemberTag``, ``editMessageChecklist``), updated chat member/tag capability fields (including ``can_manage_tags``, ``can_edit_tag``, ``tag`` and ``sender_tag``), updated message/content-type and ``MessageEntity`` handling (including date-time entity formatting), regenerated API/docs artifacts, and follow-up shortcut/codegen/test coverage for ``Chat.set_member_tag(...)`` and related tag behaviors. \ No newline at end of file diff --git a/CHANGES/1780.misc.rst b/CHANGES/1780.misc.rst new file mode 100644 index 00000000..6037a9d7 --- /dev/null +++ b/CHANGES/1780.misc.rst @@ -0,0 +1,15 @@ +Updated to `Bot API 9.5 `_ + +**New Methods:** + +- Added :class:`aiogram.methods.send_message_draft.SendMessageDraft` method - allowed for all bots to stream partial messages while they are being generated +- Added :class:`aiogram.methods.set_chat_member_tag.SetChatMemberTag` method - allows bots to set a custom tag for a chat member; available via :meth:`aiogram.types.chat.Chat.set_member_tag` shortcut + +**New Fields:** + +- Added :code:`date_time` type to :class:`aiogram.types.message_entity.MessageEntity` with :code:`unix_time` and :code:`date_time_format` fields - allows bots to display a formatted date and time to the user +- Added :code:`tag` field to :class:`aiogram.types.chat_member_member.ChatMemberMember` and :class:`aiogram.types.chat_member_restricted.ChatMemberRestricted` - the custom tag set for the chat member +- Added :code:`can_edit_tag` field to :class:`aiogram.types.chat_member_restricted.ChatMemberRestricted` and :class:`aiogram.types.chat_permissions.ChatPermissions` - indicates whether the user is allowed to edit their own tag +- Added :code:`can_manage_tags` field to :class:`aiogram.types.chat_member_administrator.ChatMemberAdministrator` and :class:`aiogram.types.chat_administrator_rights.ChatAdministratorRights` - indicates whether the administrator can manage tags of other chat members +- Added :code:`can_manage_tags` parameter to :class:`aiogram.methods.promote_chat_member.PromoteChatMember` method +- Added :code:`sender_tag` field to :class:`aiogram.types.message.Message` - the tag of the message sender in the chat