aiogram/aiogram/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
..
__init__.py Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
animation.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
audio.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
base.py Added model validation to remove UNSET before field validation (#1233) 2023-07-30 00:01:23 +03:00
bot_command.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
bot_command_scope.py [3.x] Bot API 5.3 + Improvements (#618) 2021-07-29 00:40:50 +03:00
bot_command_scope_all_chat_administrators.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
bot_command_scope_all_group_chats.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
bot_command_scope_all_private_chats.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
bot_command_scope_chat.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
bot_command_scope_chat_administrators.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
bot_command_scope_chat_member.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
bot_command_scope_default.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
bot_description.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
bot_name.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
bot_short_description.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
callback_game.py Upgrade architecture + 5.0 Bot API (#469) 2021-01-26 21:20:52 +02:00
callback_query.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
chat.py Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
chat_administrator_rights.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
chat_invite_link.py Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
chat_join_request.py Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
chat_location.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
chat_member.py Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
chat_member_administrator.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
chat_member_banned.py Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
chat_member_left.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
chat_member_member.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
chat_member_owner.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
chat_member_restricted.py Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
chat_member_updated.py Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
chat_permissions.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
chat_photo.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
chat_shared.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
chosen_inline_result.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
contact.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
custom.py Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
dice.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
document.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
downloadable.py Bump version 2021-06-19 02:42:56 +03:00
encrypted_credentials.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
encrypted_passport_element.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
error_event.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
file.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
force_reply.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
forum_topic.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
forum_topic_closed.py Bot API 6.3 (#1063) 2022-11-06 14:28:21 +02:00
forum_topic_created.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
forum_topic_edited.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
forum_topic_reopened.py Bot API 6.3 (#1063) 2022-11-06 14:28:21 +02:00
game.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
game_high_score.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
general_forum_topic_hidden.py Added full support of Bot API 6.4 (#1088) 2022-12-30 22:44:25 +02:00
general_forum_topic_unhidden.py Added full support of Bot API 6.4 (#1088) 2022-12-30 22:44:25 +02:00
inline_keyboard_button.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_keyboard_markup.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result.py [3.0] Bot API 5.1 + FSM + Utils (#525) 2021-05-11 23:04:32 +03:00
inline_query_result_article.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_audio.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_cached_audio.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_cached_document.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_cached_gif.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_cached_mpeg4_gif.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_cached_photo.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_cached_sticker.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_cached_video.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_cached_voice.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_contact.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_document.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_game.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_gif.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_location.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_mpeg4_gif.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_photo.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_venue.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_video.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_result_voice.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
inline_query_results_button.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
input_contact_message_content.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
input_file.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
input_invoice_message_content.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
input_location_message_content.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
input_media.py Upgrade architecture + 5.0 Bot API (#469) 2021-01-26 21:20:52 +02:00
input_media_animation.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
input_media_audio.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
input_media_document.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
input_media_photo.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
input_media_video.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
input_message_content.py Adding new code-generator (Butcher) (#1069) 2022-11-21 01:06:55 +02:00
input_sticker.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
input_text_message_content.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
input_venue_message_content.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
invoice.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
keyboard_button.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
keyboard_button_poll_type.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
keyboard_button_request_chat.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
keyboard_button_request_user.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
labeled_price.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
location.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
login_url.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
mask_position.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
menu_button.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
menu_button_commands.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
menu_button_default.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
menu_button_web_app.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
message.py Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
message_auto_delete_timer_changed.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
message_entity.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
message_id.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
order_info.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
passport_data.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
passport_element_error.py Upgrade architecture + 5.0 Bot API (#469) 2021-01-26 21:20:52 +02:00
passport_element_error_data_field.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
passport_element_error_file.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
passport_element_error_files.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
passport_element_error_front_side.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
passport_element_error_reverse_side.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
passport_element_error_selfie.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
passport_element_error_translation_file.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
passport_element_error_translation_files.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
passport_element_error_unspecified.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
passport_file.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
photo_size.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
poll.py Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
poll_answer.py Bot API 6.8 (#1276) 2023-08-18 20:18:05 +03:00
poll_option.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
pre_checkout_query.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
proximity_alert_triggered.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
reply_keyboard_markup.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
reply_keyboard_remove.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
response_parameters.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
sent_web_app_message.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
shipping_address.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
shipping_option.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
shipping_query.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
sticker.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
sticker_set.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
story.py Bot API 6.8 (#1276) 2023-08-18 20:18:05 +03:00
successful_payment.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
switch_inline_query_chosen_chat.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
update.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
user.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
user_profile_photos.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
user_shared.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
venue.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
video.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
video_chat_ended.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
video_chat_participants_invited.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
video_chat_scheduled.py Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
video_chat_started.py [3.x] Bot API 6.0 (#890) 2022-04-19 22:03:24 +03:00
video_note.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
voice.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
web_app_data.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
web_app_info.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00
webhook_info.py Replace datetime.datetime with DateTime across codebase (#1285) 2023-08-27 17:09:56 +03:00
write_access_allowed.py Added typehints for init methods of types and methods (#1245) 2023-08-04 00:30:27 +03:00