mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add missing shortcuts, new enums, reworked old stuff (#1070)
* Render shortcuts * Render docs * Added enumerations * Added docs * Use enums, removed Helper * Bump butcher * Added InputMediaType enum * Added MaskPositionPoint, InlineQueryResultType enums * Update texts * Added StickerType enum * Cover tests * Update docs * Fixed imports * Re-enabled all pre-commit hooks
This commit is contained in:
parent
3438d2446d
commit
3ea73fbbbd
370 changed files with 19735 additions and 8380 deletions
52
CHANGES/952.feature.rst
Normal file
52
CHANGES/952.feature.rst
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
Added missing shortcuts, new enums, reworked old stuff
|
||||
|
||||
**Breaking**
|
||||
All previously added enums is re-generated in new place - `aiogram.enums` instead of `aiogram.types`
|
||||
|
||||
**Added enums:** :class:`aiogram.enums.bot_command_scope_type.BotCommandScopeType`,
|
||||
:class:`aiogram.enums.chat_action.ChatActions`,
|
||||
:class:`aiogram.enums.chat_member_status.ChatMemberStatus`,
|
||||
:class:`aiogram.enums.chat_type.ChatType`,
|
||||
:class:`aiogram.enums.content_type.ContentType`,
|
||||
:class:`aiogram.enums.dice_emoji.DiceEmoji`,
|
||||
:class:`aiogram.enums.inline_query_result_type.InlineQueryResultType`,
|
||||
:class:`aiogram.enums.input_media_type.InputMediaType`,
|
||||
:class:`aiogram.enums.mask_position_point.MaskPositionPoint`,
|
||||
:class:`aiogram.enums.menu_button_type.MenuButtonType`,
|
||||
:class:`aiogram.enums.message_entity_type.MessageEntityType`,
|
||||
:class:`aiogram.enums.parse_mode.ParseMode`,
|
||||
:class:`aiogram.enums.poll_type.PollType`,
|
||||
:class:`aiogram.enums.sticker_type.StickerType`,
|
||||
:class:`aiogram.enums.topic_icon_color.TopicIconColor`,
|
||||
:class:`aiogram.enums.update_type.UpdateType`,
|
||||
|
||||
**Added shortcuts**:
|
||||
|
||||
- *Chat* :meth:`aiogram.types.chat.Chat.get_administrators`,
|
||||
:meth:`aiogram.types.chat.Chat.delete_message`,
|
||||
:meth:`aiogram.types.chat.Chat.revoke_invite_link`,
|
||||
:meth:`aiogram.types.chat.Chat.edit_invite_link`,
|
||||
:meth:`aiogram.types.chat.Chat.create_invite_link`,
|
||||
:meth:`aiogram.types.chat.Chat.export_invite_link`,
|
||||
:meth:`aiogram.types.chat.Chat.do`,
|
||||
:meth:`aiogram.types.chat.Chat.delete_sticker_set`,
|
||||
:meth:`aiogram.types.chat.Chat.set_sticker_set`,
|
||||
:meth:`aiogram.types.chat.Chat.get_member`,
|
||||
:meth:`aiogram.types.chat.Chat.get_member_count`,
|
||||
:meth:`aiogram.types.chat.Chat.leave`,
|
||||
:meth:`aiogram.types.chat.Chat.unpin_all_messages`,
|
||||
:meth:`aiogram.types.chat.Chat.unpin_message`,
|
||||
:meth:`aiogram.types.chat.Chat.pin_message`,
|
||||
:meth:`aiogram.types.chat.Chat.set_administrator_custom_title`,
|
||||
:meth:`aiogram.types.chat.Chat.set_permissions`,
|
||||
:meth:`aiogram.types.chat.Chat.promote`,
|
||||
:meth:`aiogram.types.chat.Chat.restrict`,
|
||||
:meth:`aiogram.types.chat.Chat.unban`,
|
||||
:meth:`aiogram.types.chat.Chat.ban`,
|
||||
:meth:`aiogram.types.chat.Chat.set_description`,
|
||||
:meth:`aiogram.types.chat.Chat.set_title`,
|
||||
:meth:`aiogram.types.chat.Chat.delete_photo`,
|
||||
:meth:`aiogram.types.chat.Chat.set_photo`,
|
||||
- *Sticker*: :meth:`aiogram.types.sticker.Sticker.set_position_in_set`,
|
||||
:meth:`aiogram.types.sticker.Sticker.delete_from_set`,
|
||||
- *User*: :meth:`aiogram.types.user.User.get_profile_photos`
|
||||
Loading…
Add table
Add a link
Reference in a new issue