aiogram/.butcher/types
Alex Root Junior 057478621b
Added full support of Bot API 7.2 (#1444)
* Added base support of Bot API 7.2

* Added base support of Bot API 7.2

* Fixing tests and content types for Telegram Bot API 7.2 update (#1453)

* Fixing tests and content types for Telegram Bot API 7.2

* Adding changelog for 1453 PR

* Fixes + coverage

* Replace `BusinessConnection.date` type

* Reformat code

* Refactor UserContextMiddleware to use EventContext class

This update significantly refactors UserContextMiddleware to leverage a new class, EventContext. Instead of resolving event context as a tuple, it now produces an instance of EventContext. Additional adjustments include supporting a business connection ID for event context identification and facilitating backwards compatibility. Tests and other files were also updated accordingly for these changes.

* Cover FSM key builder (business_connection_id

* Added changelog

---------

Co-authored-by: RoLOQ <roman.fedunn@gmail.com>
2024-04-22 13:48:49 +03:00
..
Animation Update schema 2023-03-11 17:43:01 +02:00
Audio Update schema 2023-03-11 17:43:01 +02:00
Birthdate Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
BotCommand Update schema 2023-03-11 17:43:01 +02:00
BotCommandScope Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
BotCommandScopeAllChatAdministrators Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
BotCommandScopeAllGroupChats Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
BotCommandScopeAllPrivateChats Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
BotCommandScopeChat Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
BotCommandScopeChatAdministrators Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
BotCommandScopeChatMember Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
BotCommandScopeDefault Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
BotDescription Update schema 2023-03-11 17:43:01 +02:00
BotName Bot API 6.7 (#1168) 2023-04-22 18:09:59 +03:00
BotShortDescription Update schema 2023-03-11 17:43:01 +02:00
BusinessConnection Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
BusinessIntro Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
BusinessLocation Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
BusinessMessagesDeleted Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
BusinessOpeningHours Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
BusinessOpeningHoursInterval Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
CallbackGame Update schema 2023-03-11 17:43:01 +02:00
CallbackQuery Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
Chat Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
ChatAdministratorRights Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
ChatBoost Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
ChatBoostAdded Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
ChatBoostRemoved Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
ChatBoostSource Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
ChatBoostSourceGiftCode Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
ChatBoostSourceGiveaway Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
ChatBoostSourcePremium Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
ChatBoostUpdated Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
ChatInviteLink Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
ChatJoinRequest Re-generate Bot API 2023-10-29 02:15:50 +03:00
ChatLocation Update schema 2023-03-11 17:43:01 +02:00
ChatMember Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
ChatMemberAdministrator Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
ChatMemberBanned Telegram Bot API 6.9 (#1319) 2023-09-22 17:46:57 +03:00
ChatMemberLeft Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
ChatMemberMember Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
ChatMemberOwner Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
ChatMemberRestricted Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
ChatMemberUpdated Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
ChatPermissions Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
ChatPhoto Update schema 2023-03-11 17:43:01 +02:00
ChatShared Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
ChosenInlineResult Update schema 2023-03-11 17:43:01 +02:00
Contact Update schema 2023-03-11 17:43:01 +02:00
Dice Update schema 2023-03-11 17:43:01 +02:00
Document Update schema 2023-03-11 17:43:01 +02:00
EncryptedCredentials Update schema 2023-03-11 17:43:01 +02:00
EncryptedPassportElement Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
ExternalReplyInfo Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
File Update schema 2023-03-11 17:43:01 +02:00
ForceReply Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
ForumTopic Update schema 2023-03-11 17:43:01 +02:00
ForumTopicClosed Update schema 2023-03-11 17:43:01 +02:00
ForumTopicCreated Update schema 2023-03-11 17:43:01 +02:00
ForumTopicEdited Update schema 2023-03-11 17:43:01 +02:00
ForumTopicReopened Update schema 2023-03-11 17:43:01 +02:00
Game Update schema 2023-03-11 17:43:01 +02:00
GameHighScore Update schema 2023-03-11 17:43:01 +02:00
GeneralForumTopicHidden Update schema 2023-03-11 17:43:01 +02:00
GeneralForumTopicUnhidden Update schema 2023-03-11 17:43:01 +02:00
Giveaway Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
GiveawayCompleted Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
GiveawayCreated Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
GiveawayWinners Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
InaccessibleMessage Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
InlineKeyboardButton Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
InlineKeyboardMarkup Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
InlineQuery Update schema 2023-03-11 17:43:01 +02:00
InlineQueryResult Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultArticle Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultAudio Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
InlineQueryResultCachedAudio Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
InlineQueryResultCachedDocument Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
InlineQueryResultCachedGif Reworked bot-wide defaults (#1392) 2024-01-27 17:19:45 +02:00
InlineQueryResultCachedMpeg4Gif Reworked bot-wide defaults (#1392) 2024-01-27 17:19:45 +02:00
InlineQueryResultCachedPhoto Reworked bot-wide defaults (#1392) 2024-01-27 17:19:45 +02:00
InlineQueryResultCachedSticker Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
InlineQueryResultCachedVideo Reworked bot-wide defaults (#1392) 2024-01-27 17:19:45 +02:00
InlineQueryResultCachedVoice Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
InlineQueryResultContact Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
InlineQueryResultDocument Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
InlineQueryResultGame Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
InlineQueryResultGif Reworked bot-wide defaults (#1392) 2024-01-27 17:19:45 +02:00
InlineQueryResultLocation Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
InlineQueryResultMpeg4Gif Reworked bot-wide defaults (#1392) 2024-01-27 17:19:45 +02:00
InlineQueryResultPhoto Reworked bot-wide defaults (#1392) 2024-01-27 17:19:45 +02:00
InlineQueryResultsButton Telegram Bot API 6.9 (#1319) 2023-09-22 17:46:57 +03:00
InlineQueryResultVenue Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
InlineQueryResultVideo Reworked bot-wide defaults (#1392) 2024-01-27 17:19:45 +02:00
InlineQueryResultVoice Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
InputContactMessageContent Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InputFile Update schema 2023-03-11 17:43:01 +02:00
InputInvoiceMessageContent Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InputLocationMessageContent Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
InputMedia Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InputMediaAnimation Reworked bot-wide defaults (#1392) 2024-01-27 17:19:45 +02:00
InputMediaAudio Reworked bot-wide defaults (#1392) 2024-01-27 17:19:45 +02:00
InputMediaDocument Reworked bot-wide defaults (#1392) 2024-01-27 17:19:45 +02:00
InputMediaPhoto Reworked bot-wide defaults (#1392) 2024-01-27 17:19:45 +02:00
InputMediaVideo Reworked bot-wide defaults (#1392) 2024-01-27 17:19:45 +02:00
InputMessageContent Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InputSticker Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
InputTextMessageContent Reworked bot-wide defaults (#1392) 2024-01-27 17:19:45 +02:00
InputVenueMessageContent Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
Invoice Update schema 2023-03-11 17:43:01 +02:00
KeyboardButton Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
KeyboardButtonPollType Update schema 2023-03-11 17:43:01 +02:00
KeyboardButtonRequestChat Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
KeyboardButtonRequestUser Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
KeyboardButtonRequestUsers Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
LabeledPrice Update schema 2023-03-11 17:43:01 +02:00
LinkPreviewOptions Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
Location Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
LoginUrl Update schema 2023-03-11 17:43:01 +02:00
MaskPosition Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
MaybeInaccessibleMessage Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
MenuButton Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
MenuButtonCommands Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
MenuButtonDefault Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
MenuButtonWebApp Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
Message Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
MessageAutoDeleteTimerChanged Update schema 2023-03-11 17:43:01 +02:00
MessageEntity Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
MessageId Update schema 2023-03-11 17:43:01 +02:00
MessageOrigin Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
MessageOriginChannel Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
MessageOriginChat Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
MessageOriginHiddenUser Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
MessageOriginUser Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
MessageReactionCountUpdated Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
MessageReactionUpdated Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
OrderInfo Update schema 2023-03-11 17:43:01 +02:00
PassportData Update schema 2023-03-11 17:43:01 +02:00
PassportElementError Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
PassportElementErrorDataField Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
PassportElementErrorFile Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
PassportElementErrorFiles Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
PassportElementErrorFrontSide Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
PassportElementErrorReverseSide Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
PassportElementErrorSelfie Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
PassportElementErrorTranslationFile Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
PassportElementErrorTranslationFiles Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
PassportElementErrorUnspecified Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
PassportFile Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
PhotoSize Update schema 2023-03-11 17:43:01 +02:00
Poll Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
PollAnswer Bot API 6.8 (#1276) 2023-08-18 20:18:05 +03:00
PollOption Update schema 2023-03-11 17:43:01 +02:00
PreCheckoutQuery Added codegen configuration for lost shortcuts (#1244) 2023-08-02 23:28:50 +03:00
ProximityAlertTriggered Update schema 2023-03-11 17:43:01 +02:00
ReactionCount Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
ReactionType Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
ReactionTypeCustomEmoji Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
ReactionTypeEmoji Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
ReplyKeyboardMarkup Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
ReplyKeyboardRemove Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
ReplyParameters Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
ResponseParameters Update schema 2023-03-11 17:43:01 +02:00
SentWebAppMessage Update schema 2023-03-11 17:43:01 +02:00
SharedUser Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
ShippingAddress Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
ShippingOption Update schema 2023-03-11 17:43:01 +02:00
ShippingQuery Added codegen configuration for lost shortcuts (#1244) 2023-08-02 23:28:50 +03:00
Sticker Update schema 2023-03-11 17:43:01 +02:00
StickerSet Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
Story Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
SuccessfulPayment Update schema 2023-03-11 17:43:01 +02:00
SwitchInlineQueryChosenChat Bot API 6.7 (#1168) 2023-04-22 18:09:59 +03:00
TextQuote Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
Update Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
User Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
UserChatBoosts Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
UserProfilePhotos Update schema 2023-03-11 17:43:01 +02:00
UserShared Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
UsersShared Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
Venue Update schema 2023-03-11 17:43:01 +02:00
Video Update schema 2023-03-11 17:43:01 +02:00
VideoChatEnded Update schema 2023-03-11 17:43:01 +02:00
VideoChatParticipantsInvited Update schema 2023-03-11 17:43:01 +02:00
VideoChatScheduled Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
VideoChatStarted Update schema 2023-03-11 17:43:01 +02:00
VideoNote Update schema 2023-03-11 17:43:01 +02:00
Voice Update schema 2023-03-11 17:43:01 +02:00
WebAppData Update schema 2023-03-11 17:43:01 +02:00
WebAppInfo Telegram Bot API 6.9 (#1319) 2023-09-22 17:46:57 +03:00
WebhookInfo Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
WriteAccessAllowed Telegram Bot API 6.9 (#1319) 2023-09-22 17:46:57 +03:00