aiogram/.butcher/methods
Alex Root Junior 49d0784e33
Added full support of the Bot API 9.4 (#1761)
* Bump API schema to version 9.4, add new object types, methods, and properties.

* Add tests for `ChatOwnerChanged` and `ChatOwnerLeft` message types

* Add tests for `GetUserProfileAudios`, `RemoveMyProfilePhoto`, and `SetMyProfilePhoto` methods

* Bump version

* Update Makefile variables and refactor `test_get_user_profile_audios.py`

* Document new features and updates from Bot API 9.4 in changelog

* Add `ButtonStyle` enum to represent button styles in the Telegram API

* Fix review issues from PR #1761

- Remove stray '-' artifact from GameHighScore docstring and butcher schema
- Fix Makefile reformat target scope inconsistency (ruff check --fix)
- Fix ButtonStyle enum source URL (#chat -> #inlinekeyboardbutton)
- Add User.get_profile_audios() shortcut method (parallel to get_profile_photos)
- Test ChatOwnerLeft with new_owner=None (edge case)
- Add VideoQuality type and Video.qualities nesting tests
- Add User.get_profile_audios() test

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Revert "Fix review issues from PR #1761"

This reverts commit 2184e98988.

* Update source links for `ButtonStyle` documentation to reflect accurate API references

* Fix review issues from PR #1761 (#1762)

* Fix review issues from PR #1761

- Remove stray '-' artifact from GameHighScore docstring
- Fix Makefile reformat target scope inconsistency (ruff check --fix)
- Add User.get_profile_audios() shortcut method (parallel to get_profile_photos)
- Test ChatOwnerLeft with new_owner=None (edge case)
- Add VideoQuality type and Video.qualities nesting tests
- Add User.get_profile_audios() test

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Address review comments: use fixture and variables in tests, add changelog

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Address review follow-ups for PR #1762

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* Reformat code

* Shut up, ruff

---------

Co-authored-by: latand <latand666@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Kostiantyn Kriuchkov <36363097+Latand@users.noreply.github.com>
2026-02-10 23:43:52 +02:00
..
addStickerToSet Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
answerCallbackQuery Update schema 2023-03-11 17:43:01 +02:00
answerInlineQuery Bot API 6.7 (#1168) 2023-04-22 18:09:59 +03:00
answerPreCheckoutQuery Update schema 2023-03-11 17:43:01 +02:00
answerShippingQuery Added full support for the Bot API 8.3 (#1638) 2025-02-16 22:37:18 +02:00
answerWebAppQuery Update schema 2023-03-11 17:43:01 +02:00
approveChatJoinRequest Update schema 2023-03-11 17:43:01 +02:00
approveSuggestedPost Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
banChatMember Telegram Bot API 6.9 (#1319) 2023-09-22 17:46:57 +03:00
banChatSenderChat Update schema 2023-03-11 17:43:01 +02:00
close Update schema 2023-03-11 17:43:01 +02:00
closeForumTopic Update schema 2023-03-11 17:43:01 +02:00
closeGeneralForumTopic Update schema 2023-03-11 17:43:01 +02:00
convertGiftToStars Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
copyMessage Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
copyMessages Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
createChatInviteLink Update schema 2023-03-11 17:43:01 +02:00
createChatSubscriptionInviteLink Added full support for the Bot API 9.0 (#1671) 2025-04-12 23:29:48 +03:00
createForumTopic Added full support of the Bot API 9.4 (#1761) 2026-02-10 23:43:52 +02:00
createInvoiceLink Added full support for the Bot API 9.0 (#1671) 2025-04-12 23:29:48 +03:00
createNewStickerSet Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
declineChatJoinRequest Update schema 2023-03-11 17:43:01 +02:00
declineSuggestedPost Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
deleteBusinessMessages Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
deleteChatPhoto Update schema 2023-03-11 17:43:01 +02:00
deleteChatStickerSet Update schema 2023-03-11 17:43:01 +02:00
deleteForumTopic Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
deleteMessage Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
deleteMessages Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
deleteMyCommands Update schema 2023-03-11 17:43:01 +02:00
deleteStickerFromSet Update schema 2023-03-11 17:43:01 +02:00
deleteStickerSet Update schema 2023-03-11 17:43:01 +02:00
deleteStory Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
deleteWebhook Update schema 2023-03-11 17:43:01 +02:00
editChatInviteLink Update schema 2023-03-11 17:43:01 +02:00
editChatSubscriptionInviteLink Added full support of Bot API 7.9 (#1560) 2024-08-16 00:44:40 +03:00
editForumTopic Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
editGeneralForumTopic Added full support of Bot API 7.9 (#1560) 2024-08-16 00:44:40 +03:00
editMessageCaption Added full support of Bot API 7.5 (#1518) 2024-06-19 00:54:22 +03:00
editMessageChecklist Add support for Telegram Bot API 9.1 (#1704) 2025-07-05 03:02:44 +03:00
editMessageLiveLocation Added full support of Bot API 7.5 (#1518) 2024-06-19 00:54:22 +03:00
editMessageMedia Added full support of Bot API 7.11 (#1601) 2024-11-02 16:13:45 +02:00
editMessageReplyMarkup Added full support of Bot API 7.5 (#1518) 2024-06-19 00:54:22 +03:00
editMessageText Fixed link preview options to use global defaults in some types and methods (#1563) 2024-08-17 16:41:52 +03:00
editStory Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
editUserStarSubscription Added full support for Bot API 8.0 (#1606) 2024-11-17 23:18:42 +02:00
exportChatInviteLink Update schema 2023-03-11 17:43:01 +02:00
forwardMessage Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
forwardMessages Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
getAvailableGifts Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
getBusinessAccountGifts Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
getBusinessAccountStarBalance Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
getBusinessConnection Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
getChat Full support of Bot API 7.3 (#1480) 2024-05-06 23:27:54 +03:00
getChatAdministrators Update schema 2023-03-11 17:43:01 +02:00
getChatGifts Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
getChatMember Update schema 2023-03-11 17:43:01 +02:00
getChatMemberCount Update schema 2023-03-11 17:43:01 +02:00
getChatMenuButton Update schema 2023-03-11 17:43:01 +02:00
getCustomEmojiStickers Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
getFile Update schema 2023-03-11 17:43:01 +02:00
getForumTopicIconStickers Update schema 2023-03-11 17:43:01 +02:00
getGameHighScores Update schema 2023-03-11 17:43:01 +02:00
getMe Update schema 2023-03-11 17:43:01 +02:00
getMyCommands Update schema 2023-03-11 17:43:01 +02:00
getMyDefaultAdministratorRights Update schema 2023-03-11 17:43:01 +02:00
getMyDescription Update schema 2023-03-11 17:43:01 +02:00
getMyName Bot API 6.7 (#1168) 2023-04-22 18:09:59 +03:00
getMyShortDescription Update schema 2023-03-11 17:43:01 +02:00
getMyStarBalance Add support for Telegram Bot API 9.1 (#1704) 2025-07-05 03:02:44 +03:00
getStarTransactions Added full support of Bot API 7.5 (#1518) 2024-06-19 00:54:22 +03:00
getStickerSet Update schema 2023-03-11 17:43:01 +02:00
getUpdates Added full support of Bot API 8.2 (#1623) 2025-01-02 02:38:18 +02:00
getUserChatBoosts Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
getUserGifts Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
getUserProfileAudios Added full support of the Bot API 9.4 (#1761) 2026-02-10 23:43:52 +02:00
getUserProfilePhotos Update schema 2023-03-11 17:43:01 +02:00
getWebhookInfo Update schema 2023-03-11 17:43:01 +02:00
giftPremiumSubscription Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
hideGeneralForumTopic Update schema 2023-03-11 17:43:01 +02:00
leaveChat Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
logOut Update schema 2023-03-11 17:43:01 +02:00
pinChatMessage Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
postStory Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
promoteChatMember Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
readBusinessMessage Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
refundStarPayment Added full support of Bot API 7.4 (#1498) 2024-05-31 20:07:11 +03:00
removeBusinessAccountProfilePhoto Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
removeChatVerification Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
removeMyProfilePhoto Added full support of the Bot API 9.4 (#1761) 2026-02-10 23:43:52 +02:00
removeUserVerification Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
reopenForumTopic Update schema 2023-03-11 17:43:01 +02:00
reopenGeneralForumTopic Update schema 2023-03-11 17:43:01 +02:00
replaceStickerInSet Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
repostStory Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
restrictChatMember Telegram Bot API 6.9 (#1319) 2023-09-22 17:46:57 +03:00
revokeChatInviteLink Update schema 2023-03-11 17:43:01 +02:00
savePreparedInlineMessage Added full support for Bot API 8.0 (#1606) 2024-11-17 23:18:42 +02:00
sendAnimation Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendAudio Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendChatAction Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendChecklist Add support for Telegram Bot API 9.1 (#1704) 2025-07-05 03:02:44 +03:00
sendContact Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendDice Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendDocument Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendGame Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendGift Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendInvoice Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendLocation Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendMediaGroup Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendMessage Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendMessageDraft Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendPaidMedia Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendPhoto Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendPoll Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendSticker Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendVenue Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendVideo Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendVideoNote Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
sendVoice Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
setBusinessAccountBio Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
setBusinessAccountGiftSettings Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
setBusinessAccountName Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
setBusinessAccountProfilePhoto Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
setBusinessAccountUsername Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
setChatAdministratorCustomTitle Update schema 2023-03-11 17:43:01 +02:00
setChatDescription Update schema 2023-03-11 17:43:01 +02:00
setChatMenuButton Update schema 2023-03-11 17:43:01 +02:00
setChatPermissions Update schema 2023-03-11 17:43:01 +02:00
setChatPhoto Update schema 2023-03-11 17:43:01 +02:00
setChatStickerSet Update schema 2023-03-11 17:43:01 +02:00
setChatTitle Update schema 2023-03-11 17:43:01 +02:00
setCustomEmojiStickerSetThumbnail Update schema 2023-03-11 17:43:01 +02:00
setGameScore Update schema 2023-03-11 17:43:01 +02:00
setMessageReaction Added full support for the Bot API 8.3 (#1638) 2025-02-16 22:37:18 +02:00
setMyCommands Update schema 2023-03-11 17:43:01 +02:00
setMyDefaultAdministratorRights Update schema 2023-03-11 17:43:01 +02:00
setMyDescription Update schema 2023-03-11 17:43:01 +02:00
setMyName Bot API 6.7 (#1168) 2023-04-22 18:09:59 +03:00
setMyProfilePhoto Added full support of the Bot API 9.4 (#1761) 2026-02-10 23:43:52 +02:00
setMyShortDescription Update schema 2023-03-11 17:43:01 +02:00
setPassportDataErrors Update schema 2023-03-11 17:43:01 +02:00
setStickerEmojiList Update schema 2023-03-11 17:43:01 +02:00
setStickerKeywords Update schema 2023-03-11 17:43:01 +02:00
setStickerMaskPosition Update schema 2023-03-11 17:43:01 +02:00
setStickerPositionInSet Update schema 2023-03-11 17:43:01 +02:00
setStickerSetThumbnail Added full support of Bot API 8.2 (#1623) 2025-01-02 02:38:18 +02:00
setStickerSetTitle Update schema 2023-03-11 17:43:01 +02:00
setUserEmojiStatus Added full support for Bot API 8.0 (#1606) 2024-11-17 23:18:42 +02:00
setWebhook Added full support of Bot API 8.2 (#1623) 2025-01-02 02:38:18 +02:00
stopMessageLiveLocation Added full support of Bot API 7.5 (#1518) 2024-06-19 00:54:22 +03:00
stopPoll Added full support of Bot API 7.5 (#1518) 2024-06-19 00:54:22 +03:00
transferBusinessAccountStars Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
transferGift Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
unbanChatMember Update schema 2023-03-11 17:43:01 +02:00
unbanChatSenderChat Update schema 2023-03-11 17:43:01 +02:00
unhideGeneralForumTopic Update schema 2023-03-11 17:43:01 +02:00
unpinAllChatMessages Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
unpinAllForumTopicMessages Added full support of Telegram Bot API 9.3 (#1747) 2026-01-02 01:45:35 +02:00
unpinAllGeneralForumTopicMessages Bot API 6.8 (#1276) 2023-08-18 20:18:05 +03:00
unpinChatMessage Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
upgradeGift Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
uploadStickerFile Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
verifyChat Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00
verifyUser Added full support for the Bot API 9.2 (#1720) 2025-08-17 19:07:58 +03:00