aiogram/.butcher/types
Alex Root Junior 6eb5ef2606
Replace datetime.datetime with DateTime across codebase (#1285)
* #1277  Replace datetime.datetime with DateTime across codebase

Replaced all instances of standard library 'datetime.datetime' with a new 'DateTime' type from `.custom` module. This change is necessary to make all date-time values compatible with the Telegram Bot API (it uses Unix time). This will simplify the conversion process and eliminate potential errors related to date-time format mismatches. Changed codebase, butcher files, and modified 'pyproject.toml' to shift the typing-extensions dependency. The 'aiogram/custom_types.py' file was renamed to 'aiogram/types/custom.py' to better reflect its nature as a location for custom types used in the aiogram library.
2023-08-27 17:09:56 +03:00
..
Animation Update schema 2023-03-11 17:43:01 +02:00
Audio Update schema 2023-03-11 17:43:01 +02: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
CallbackGame Update schema 2023-03-11 17:43:01 +02:00
CallbackQuery Update schema 2023-03-11 17:43:01 +02:00
Chat Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
ChatAdministratorRights Update schema 2023-03-11 17:43:01 +02:00
ChatInviteLink Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
ChatJoinRequest Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +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 Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
ChatMemberBanned Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +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 Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
ChatMemberUpdated Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
ChatPermissions Update schema 2023-03-11 17:43:01 +02:00
ChatPhoto Update schema 2023-03-11 17:43:01 +02:00
ChatShared Update schema 2023-03-11 17:43:01 +02: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 Update schema 2023-03-11 17:43:01 +02:00
File Update schema 2023-03-11 17:43:01 +02:00
ForceReply Update schema 2023-03-11 17:43:01 +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
InlineKeyboardButton Update pydantic to V2 (#1202) 2023-07-02 15:07:19 +03:00
InlineKeyboardMarkup Update schema 2023-03-11 17:43:01 +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 Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultCachedAudio Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultCachedDocument Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultCachedGif Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultCachedMpeg4Gif Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultCachedPhoto Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultCachedSticker Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultCachedVideo Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultCachedVoice Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultContact Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultDocument Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultGame Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultGif Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultLocation Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultMpeg4Gif Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultPhoto Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultsButton Update pydantic to V2 (#1202) 2023-07-02 15:07:19 +03:00
InlineQueryResultVenue Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultVideo Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InlineQueryResultVoice Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03: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 Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InputMedia Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InputMediaAnimation Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InputMediaAudio Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InputMediaDocument Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InputMediaPhoto Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InputMediaVideo Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InputMessageContent Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
InputSticker Update API docs 2023-04-08 18:31:38 +03:00
InputTextMessageContent Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03: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 Update schema 2023-03-11 17:43:01 +02:00
KeyboardButtonPollType Update schema 2023-03-11 17:43:01 +02:00
KeyboardButtonRequestChat Update API docs 2023-04-08 18:31:38 +03:00
KeyboardButtonRequestUser Update API docs 2023-04-08 18:31:38 +03:00
LabeledPrice Update schema 2023-03-11 17:43:01 +02:00
Location Update schema 2023-03-11 17:43:01 +02:00
LoginUrl Update schema 2023-03-11 17:43:01 +02:00
MaskPosition Update schema 2023-03-11 17:43:01 +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 Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
MessageAutoDeleteTimerChanged Update schema 2023-03-11 17:43:01 +02:00
MessageEntity Update schema 2023-03-11 17:43:01 +02:00
MessageId Update schema 2023-03-11 17:43:01 +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 Update schema 2023-03-11 17:43:01 +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
ReplyKeyboardMarkup Update schema 2023-03-11 17:43:01 +02:00
ReplyKeyboardRemove Update schema 2023-03-11 17:43:01 +02:00
ResponseParameters Update schema 2023-03-11 17:43:01 +02:00
SentWebAppMessage Update schema 2023-03-11 17:43:01 +02:00
ShippingAddress Update schema 2023-03-11 17:43:01 +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 Update schema 2023-03-11 17:43:01 +02:00
Story Bot API 6.8 (#1276) 2023-08-18 20:18:05 +03: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
Update Update schema 2023-03-11 17:43:01 +02:00
User Update schema 2023-03-11 17:43:01 +02:00
UserProfilePhotos Update schema 2023-03-11 17:43:01 +02:00
UserShared Update schema 2023-03-11 17:43:01 +02: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 Update schema 2023-03-11 17:43:01 +02:00
WebhookInfo Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
WriteAccessAllowed Bot API 6.7 (#1168) 2023-04-22 18:09:59 +03:00