mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
Replace types ty methods in docs/api/methods
This commit is contained in:
parent
647d03b2d4
commit
1cac963562
65 changed files with 195 additions and 195 deletions
|
|
@ -37,9 +37,9 @@ result: bool = await bot.add_sticker_to_set(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import AddStickerToSet`
|
||||
- `from aiogram.api.types import AddStickerToSet`
|
||||
- `from aiogram.api.types.add_sticker_to_set import AddStickerToSet`
|
||||
- `from aiogram.methods import AddStickerToSet`
|
||||
- `from aiogram.api.methods import AddStickerToSet`
|
||||
- `from aiogram.api.methods.add_sticker_to_set import AddStickerToSet`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -39,9 +39,9 @@ result: bool = await bot.answer_callback_query(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import AnswerCallbackQuery`
|
||||
- `from aiogram.api.types import AnswerCallbackQuery`
|
||||
- `from aiogram.api.types.answer_callback_query import AnswerCallbackQuery`
|
||||
- `from aiogram.methods import AnswerCallbackQuery`
|
||||
- `from aiogram.api.methods import AnswerCallbackQuery`
|
||||
- `from aiogram.api.methods.answer_callback_query import AnswerCallbackQuery`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -41,9 +41,9 @@ result: bool = await bot.answer_inline_query(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import AnswerInlineQuery`
|
||||
- `from aiogram.api.types import AnswerInlineQuery`
|
||||
- `from aiogram.api.types.answer_inline_query import AnswerInlineQuery`
|
||||
- `from aiogram.methods import AnswerInlineQuery`
|
||||
- `from aiogram.api.methods import AnswerInlineQuery`
|
||||
- `from aiogram.api.methods.answer_inline_query import AnswerInlineQuery`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@ result: bool = await bot.answer_pre_checkout_query(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import AnswerPreCheckoutQuery`
|
||||
- `from aiogram.api.types import AnswerPreCheckoutQuery`
|
||||
- `from aiogram.api.types.answer_pre_checkout_query import AnswerPreCheckoutQuery`
|
||||
- `from aiogram.methods import AnswerPreCheckoutQuery`
|
||||
- `from aiogram.api.methods import AnswerPreCheckoutQuery`
|
||||
- `from aiogram.api.methods.answer_pre_checkout_query import AnswerPreCheckoutQuery`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@ result: bool = await bot.answer_shipping_query(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import AnswerShippingQuery`
|
||||
- `from aiogram.api.types import AnswerShippingQuery`
|
||||
- `from aiogram.api.types.answer_shipping_query import AnswerShippingQuery`
|
||||
- `from aiogram.methods import AnswerShippingQuery`
|
||||
- `from aiogram.api.methods import AnswerShippingQuery`
|
||||
- `from aiogram.api.methods.answer_shipping_query import AnswerShippingQuery`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -39,9 +39,9 @@ result: bool = await bot.create_new_sticker_set(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import CreateNewStickerSet`
|
||||
- `from aiogram.api.types import CreateNewStickerSet`
|
||||
- `from aiogram.api.types.create_new_sticker_set import CreateNewStickerSet`
|
||||
- `from aiogram.methods import CreateNewStickerSet`
|
||||
- `from aiogram.api.methods import CreateNewStickerSet`
|
||||
- `from aiogram.api.methods.create_new_sticker_set import CreateNewStickerSet`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ result: bool = await bot.delete_chat_photo(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import DeleteChatPhoto`
|
||||
- `from aiogram.api.types import DeleteChatPhoto`
|
||||
- `from aiogram.api.types.delete_chat_photo import DeleteChatPhoto`
|
||||
- `from aiogram.methods import DeleteChatPhoto`
|
||||
- `from aiogram.api.methods import DeleteChatPhoto`
|
||||
- `from aiogram.api.methods.delete_chat_photo import DeleteChatPhoto`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ result: bool = await bot.delete_chat_sticker_set(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import DeleteChatStickerSet`
|
||||
- `from aiogram.api.types import DeleteChatStickerSet`
|
||||
- `from aiogram.api.types.delete_chat_sticker_set import DeleteChatStickerSet`
|
||||
- `from aiogram.methods import DeleteChatStickerSet`
|
||||
- `from aiogram.api.methods import DeleteChatStickerSet`
|
||||
- `from aiogram.api.methods.delete_chat_sticker_set import DeleteChatStickerSet`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -48,9 +48,9 @@ result: bool = await bot.delete_message(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import DeleteMessage`
|
||||
- `from aiogram.api.types import DeleteMessage`
|
||||
- `from aiogram.api.types.delete_message import DeleteMessage`
|
||||
- `from aiogram.methods import DeleteMessage`
|
||||
- `from aiogram.api.methods import DeleteMessage`
|
||||
- `from aiogram.api.methods.delete_message import DeleteMessage`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ result: bool = await bot.delete_sticker_from_set(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import DeleteStickerFromSet`
|
||||
- `from aiogram.api.types import DeleteStickerFromSet`
|
||||
- `from aiogram.api.types.delete_sticker_from_set import DeleteStickerFromSet`
|
||||
- `from aiogram.methods import DeleteStickerFromSet`
|
||||
- `from aiogram.api.methods import DeleteStickerFromSet`
|
||||
- `from aiogram.api.methods.delete_sticker_from_set import DeleteStickerFromSet`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@ result: bool = await bot.delete_webhook(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import DeleteWebhook`
|
||||
- `from aiogram.api.types import DeleteWebhook`
|
||||
- `from aiogram.api.types.delete_webhook import DeleteWebhook`
|
||||
- `from aiogram.methods import DeleteWebhook`
|
||||
- `from aiogram.api.methods import DeleteWebhook`
|
||||
- `from aiogram.api.methods.delete_webhook import DeleteWebhook`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -38,9 +38,9 @@ result: Union[Message, bool] = await bot.edit_message_caption(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import EditMessageCaption`
|
||||
- `from aiogram.api.types import EditMessageCaption`
|
||||
- `from aiogram.api.types.edit_message_caption import EditMessageCaption`
|
||||
- `from aiogram.methods import EditMessageCaption`
|
||||
- `from aiogram.api.methods import EditMessageCaption`
|
||||
- `from aiogram.api.methods.edit_message_caption import EditMessageCaption`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -38,9 +38,9 @@ result: Union[Message, bool] = await bot.edit_message_live_location(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import EditMessageLiveLocation`
|
||||
- `from aiogram.api.types import EditMessageLiveLocation`
|
||||
- `from aiogram.api.types.edit_message_live_location import EditMessageLiveLocation`
|
||||
- `from aiogram.methods import EditMessageLiveLocation`
|
||||
- `from aiogram.api.methods import EditMessageLiveLocation`
|
||||
- `from aiogram.api.methods.edit_message_live_location import EditMessageLiveLocation`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@ result: Union[Message, bool] = await bot.edit_message_media(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import EditMessageMedia`
|
||||
- `from aiogram.api.types import EditMessageMedia`
|
||||
- `from aiogram.api.types.edit_message_media import EditMessageMedia`
|
||||
- `from aiogram.methods import EditMessageMedia`
|
||||
- `from aiogram.api.methods import EditMessageMedia`
|
||||
- `from aiogram.api.methods.edit_message_media import EditMessageMedia`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@ result: Union[Message, bool] = await bot.edit_message_reply_markup(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import EditMessageReplyMarkup`
|
||||
- `from aiogram.api.types import EditMessageReplyMarkup`
|
||||
- `from aiogram.api.types.edit_message_reply_markup import EditMessageReplyMarkup`
|
||||
- `from aiogram.methods import EditMessageReplyMarkup`
|
||||
- `from aiogram.api.methods import EditMessageReplyMarkup`
|
||||
- `from aiogram.api.methods.edit_message_reply_markup import EditMessageReplyMarkup`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -39,9 +39,9 @@ result: Union[Message, bool] = await bot.edit_message_text(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import EditMessageText`
|
||||
- `from aiogram.api.types import EditMessageText`
|
||||
- `from aiogram.api.types.edit_message_text import EditMessageText`
|
||||
- `from aiogram.methods import EditMessageText`
|
||||
- `from aiogram.api.methods import EditMessageText`
|
||||
- `from aiogram.api.methods.edit_message_text import EditMessageText`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@ result: str = await bot.export_chat_invite_link(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import ExportChatInviteLink`
|
||||
- `from aiogram.api.types import ExportChatInviteLink`
|
||||
- `from aiogram.api.types.export_chat_invite_link import ExportChatInviteLink`
|
||||
- `from aiogram.methods import ExportChatInviteLink`
|
||||
- `from aiogram.api.methods import ExportChatInviteLink`
|
||||
- `from aiogram.api.methods.export_chat_invite_link import ExportChatInviteLink`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@ result: Message = await bot.forward_message(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import ForwardMessage`
|
||||
- `from aiogram.api.types import ForwardMessage`
|
||||
- `from aiogram.api.types.forward_message import ForwardMessage`
|
||||
- `from aiogram.methods import ForwardMessage`
|
||||
- `from aiogram.api.methods import ForwardMessage`
|
||||
- `from aiogram.api.methods.forward_message import ForwardMessage`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ result: Chat = await bot.get_chat(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import GetChat`
|
||||
- `from aiogram.api.types import GetChat`
|
||||
- `from aiogram.api.types.get_chat import GetChat`
|
||||
- `from aiogram.methods import GetChat`
|
||||
- `from aiogram.api.methods import GetChat`
|
||||
- `from aiogram.api.methods.get_chat import GetChat`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ result: List[ChatMember] = await bot.get_chat_administrators(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import GetChatAdministrators`
|
||||
- `from aiogram.api.types import GetChatAdministrators`
|
||||
- `from aiogram.api.types.get_chat_administrators import GetChatAdministrators`
|
||||
- `from aiogram.methods import GetChatAdministrators`
|
||||
- `from aiogram.api.methods import GetChatAdministrators`
|
||||
- `from aiogram.api.methods.get_chat_administrators import GetChatAdministrators`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ result: ChatMember = await bot.get_chat_member(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import GetChatMember`
|
||||
- `from aiogram.api.types import GetChatMember`
|
||||
- `from aiogram.api.types.get_chat_member import GetChatMember`
|
||||
- `from aiogram.methods import GetChatMember`
|
||||
- `from aiogram.api.methods import GetChatMember`
|
||||
- `from aiogram.api.methods.get_chat_member import GetChatMember`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ result: int = await bot.get_chat_members_count(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import GetChatMembersCount`
|
||||
- `from aiogram.api.types import GetChatMembersCount`
|
||||
- `from aiogram.api.types.get_chat_members_count import GetChatMembersCount`
|
||||
- `from aiogram.methods import GetChatMembersCount`
|
||||
- `from aiogram.api.methods import GetChatMembersCount`
|
||||
- `from aiogram.api.methods.get_chat_members_count import GetChatMembersCount`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@ result: File = await bot.get_file(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import GetFile`
|
||||
- `from aiogram.api.types import GetFile`
|
||||
- `from aiogram.api.types.get_file import GetFile`
|
||||
- `from aiogram.methods import GetFile`
|
||||
- `from aiogram.api.methods import GetFile`
|
||||
- `from aiogram.api.methods.get_file import GetFile`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
|
|
|
|||
|
|
@ -38,9 +38,9 @@ result: List[GameHighScore] = await bot.get_game_high_scores(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import GetGameHighScores`
|
||||
- `from aiogram.api.types import GetGameHighScores`
|
||||
- `from aiogram.api.types.get_game_high_scores import GetGameHighScores`
|
||||
- `from aiogram.methods import GetGameHighScores`
|
||||
- `from aiogram.api.methods import GetGameHighScores`
|
||||
- `from aiogram.api.methods.get_game_high_scores import GetGameHighScores`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@ result: User = await bot.get_me(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import GetMe`
|
||||
- `from aiogram.api.types import GetMe`
|
||||
- `from aiogram.api.types.get_me import GetMe`
|
||||
- `from aiogram.methods import GetMe`
|
||||
- `from aiogram.api.methods import GetMe`
|
||||
- `from aiogram.api.methods.get_me import GetMe`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ result: StickerSet = await bot.get_sticker_set(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import GetStickerSet`
|
||||
- `from aiogram.api.types import GetStickerSet`
|
||||
- `from aiogram.api.types.get_sticker_set import GetStickerSet`
|
||||
- `from aiogram.methods import GetStickerSet`
|
||||
- `from aiogram.api.methods import GetStickerSet`
|
||||
- `from aiogram.api.methods.get_sticker_set import GetStickerSet`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
|
|
|
|||
|
|
@ -42,9 +42,9 @@ result: List[Update] = await bot.get_updates(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import GetUpdates`
|
||||
- `from aiogram.api.types import GetUpdates`
|
||||
- `from aiogram.api.types.get_updates import GetUpdates`
|
||||
- `from aiogram.methods import GetUpdates`
|
||||
- `from aiogram.api.methods import GetUpdates`
|
||||
- `from aiogram.api.methods.get_updates import GetUpdates`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@ result: UserProfilePhotos = await bot.get_user_profile_photos(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import GetUserProfilePhotos`
|
||||
- `from aiogram.api.types import GetUserProfilePhotos`
|
||||
- `from aiogram.api.types.get_user_profile_photos import GetUserProfilePhotos`
|
||||
- `from aiogram.methods import GetUserProfilePhotos`
|
||||
- `from aiogram.api.methods import GetUserProfilePhotos`
|
||||
- `from aiogram.api.methods.get_user_profile_photos import GetUserProfilePhotos`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@ result: WebhookInfo = await bot.get_webhook_info(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import GetWebhookInfo`
|
||||
- `from aiogram.api.types import GetWebhookInfo`
|
||||
- `from aiogram.api.types.get_webhook_info import GetWebhookInfo`
|
||||
- `from aiogram.methods import GetWebhookInfo`
|
||||
- `from aiogram.api.methods import GetWebhookInfo`
|
||||
- `from aiogram.api.methods.get_webhook_info import GetWebhookInfo`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@ result: bool = await bot.kick_chat_member(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import KickChatMember`
|
||||
- `from aiogram.api.types import KickChatMember`
|
||||
- `from aiogram.api.types.kick_chat_member import KickChatMember`
|
||||
- `from aiogram.methods import KickChatMember`
|
||||
- `from aiogram.api.methods import KickChatMember`
|
||||
- `from aiogram.api.methods.kick_chat_member import KickChatMember`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ result: bool = await bot.leave_chat(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import LeaveChat`
|
||||
- `from aiogram.api.types import LeaveChat`
|
||||
- `from aiogram.api.types.leave_chat import LeaveChat`
|
||||
- `from aiogram.methods import LeaveChat`
|
||||
- `from aiogram.api.methods import LeaveChat`
|
||||
- `from aiogram.api.methods.leave_chat import LeaveChat`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@ result: bool = await bot.pin_chat_message(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import PinChatMessage`
|
||||
- `from aiogram.api.types import PinChatMessage`
|
||||
- `from aiogram.api.types.pin_chat_message import PinChatMessage`
|
||||
- `from aiogram.methods import PinChatMessage`
|
||||
- `from aiogram.api.methods import PinChatMessage`
|
||||
- `from aiogram.api.methods.pin_chat_message import PinChatMessage`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -42,9 +42,9 @@ result: bool = await bot.promote_chat_member(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import PromoteChatMember`
|
||||
- `from aiogram.api.types import PromoteChatMember`
|
||||
- `from aiogram.api.types.promote_chat_member import PromoteChatMember`
|
||||
- `from aiogram.methods import PromoteChatMember`
|
||||
- `from aiogram.api.methods import PromoteChatMember`
|
||||
- `from aiogram.api.methods.promote_chat_member import PromoteChatMember`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@ result: bool = await bot.restrict_chat_member(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import RestrictChatMember`
|
||||
- `from aiogram.api.types import RestrictChatMember`
|
||||
- `from aiogram.api.types.restrict_chat_member import RestrictChatMember`
|
||||
- `from aiogram.methods import RestrictChatMember`
|
||||
- `from aiogram.api.methods import RestrictChatMember`
|
||||
- `from aiogram.api.methods.restrict_chat_member import RestrictChatMember`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -43,9 +43,9 @@ result: Message = await bot.send_animation(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendAnimation`
|
||||
- `from aiogram.api.types import SendAnimation`
|
||||
- `from aiogram.api.types.send_animation import SendAnimation`
|
||||
- `from aiogram.methods import SendAnimation`
|
||||
- `from aiogram.api.methods import SendAnimation`
|
||||
- `from aiogram.api.methods.send_animation import SendAnimation`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -45,9 +45,9 @@ result: Message = await bot.send_audio(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendAudio`
|
||||
- `from aiogram.api.types import SendAudio`
|
||||
- `from aiogram.api.types.send_audio import SendAudio`
|
||||
- `from aiogram.methods import SendAudio`
|
||||
- `from aiogram.api.methods import SendAudio`
|
||||
- `from aiogram.api.methods.send_audio import SendAudio`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -38,9 +38,9 @@ result: bool = await bot.send_chat_action(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendChatAction`
|
||||
- `from aiogram.api.types import SendChatAction`
|
||||
- `from aiogram.api.types.send_chat_action import SendChatAction`
|
||||
- `from aiogram.methods import SendChatAction`
|
||||
- `from aiogram.api.methods import SendChatAction`
|
||||
- `from aiogram.api.methods.send_chat_action import SendChatAction`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -40,9 +40,9 @@ result: Message = await bot.send_contact(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendContact`
|
||||
- `from aiogram.api.types import SendContact`
|
||||
- `from aiogram.api.types.send_contact import SendContact`
|
||||
- `from aiogram.methods import SendContact`
|
||||
- `from aiogram.api.methods import SendContact`
|
||||
- `from aiogram.api.methods.send_contact import SendContact`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -40,9 +40,9 @@ result: Message = await bot.send_document(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendDocument`
|
||||
- `from aiogram.api.types import SendDocument`
|
||||
- `from aiogram.api.types.send_document import SendDocument`
|
||||
- `from aiogram.methods import SendDocument`
|
||||
- `from aiogram.api.methods import SendDocument`
|
||||
- `from aiogram.api.methods.send_document import SendDocument`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@ result: Message = await bot.send_game(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendGame`
|
||||
- `from aiogram.api.types import SendGame`
|
||||
- `from aiogram.api.types.send_game import SendGame`
|
||||
- `from aiogram.methods import SendGame`
|
||||
- `from aiogram.api.methods import SendGame`
|
||||
- `from aiogram.api.methods.send_game import SendGame`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -55,9 +55,9 @@ result: Message = await bot.send_invoice(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendInvoice`
|
||||
- `from aiogram.api.types import SendInvoice`
|
||||
- `from aiogram.api.types.send_invoice import SendInvoice`
|
||||
- `from aiogram.methods import SendInvoice`
|
||||
- `from aiogram.api.methods import SendInvoice`
|
||||
- `from aiogram.api.methods.send_invoice import SendInvoice`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -39,9 +39,9 @@ result: Message = await bot.send_location(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendLocation`
|
||||
- `from aiogram.api.types import SendLocation`
|
||||
- `from aiogram.api.types.send_location import SendLocation`
|
||||
- `from aiogram.methods import SendLocation`
|
||||
- `from aiogram.api.methods import SendLocation`
|
||||
- `from aiogram.api.methods.send_location import SendLocation`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@ result: List[Message] = await bot.send_media_group(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendMediaGroup`
|
||||
- `from aiogram.api.types import SendMediaGroup`
|
||||
- `from aiogram.api.types.send_media_group import SendMediaGroup`
|
||||
- `from aiogram.methods import SendMediaGroup`
|
||||
- `from aiogram.api.methods import SendMediaGroup`
|
||||
- `from aiogram.api.methods.send_media_group import SendMediaGroup`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -39,9 +39,9 @@ result: Message = await bot.send_message(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendMessage`
|
||||
- `from aiogram.api.types import SendMessage`
|
||||
- `from aiogram.api.types.send_message import SendMessage`
|
||||
- `from aiogram.methods import SendMessage`
|
||||
- `from aiogram.api.methods import SendMessage`
|
||||
- `from aiogram.api.methods.send_message import SendMessage`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -39,9 +39,9 @@ result: Message = await bot.send_photo(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendPhoto`
|
||||
- `from aiogram.api.types import SendPhoto`
|
||||
- `from aiogram.api.types.send_photo import SendPhoto`
|
||||
- `from aiogram.methods import SendPhoto`
|
||||
- `from aiogram.api.methods import SendPhoto`
|
||||
- `from aiogram.api.methods.send_photo import SendPhoto`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -38,9 +38,9 @@ result: Message = await bot.send_poll(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendPoll`
|
||||
- `from aiogram.api.types import SendPoll`
|
||||
- `from aiogram.api.types.send_poll import SendPoll`
|
||||
- `from aiogram.methods import SendPoll`
|
||||
- `from aiogram.api.methods import SendPoll`
|
||||
- `from aiogram.api.methods.send_poll import SendPoll`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@ result: Message = await bot.send_sticker(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendSticker`
|
||||
- `from aiogram.api.types import SendSticker`
|
||||
- `from aiogram.api.types.send_sticker import SendSticker`
|
||||
- `from aiogram.methods import SendSticker`
|
||||
- `from aiogram.api.methods import SendSticker`
|
||||
- `from aiogram.api.methods.send_sticker import SendSticker`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -42,9 +42,9 @@ result: Message = await bot.send_venue(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendVenue`
|
||||
- `from aiogram.api.types import SendVenue`
|
||||
- `from aiogram.api.types.send_venue import SendVenue`
|
||||
- `from aiogram.methods import SendVenue`
|
||||
- `from aiogram.api.methods import SendVenue`
|
||||
- `from aiogram.api.methods.send_venue import SendVenue`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -44,9 +44,9 @@ result: Message = await bot.send_video(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendVideo`
|
||||
- `from aiogram.api.types import SendVideo`
|
||||
- `from aiogram.api.types.send_video import SendVideo`
|
||||
- `from aiogram.methods import SendVideo`
|
||||
- `from aiogram.api.methods import SendVideo`
|
||||
- `from aiogram.api.methods.send_video import SendVideo`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -40,9 +40,9 @@ result: Message = await bot.send_video_note(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendVideoNote`
|
||||
- `from aiogram.api.types import SendVideoNote`
|
||||
- `from aiogram.api.types.send_video_note import SendVideoNote`
|
||||
- `from aiogram.methods import SendVideoNote`
|
||||
- `from aiogram.api.methods import SendVideoNote`
|
||||
- `from aiogram.api.methods.send_video_note import SendVideoNote`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -40,9 +40,9 @@ result: Message = await bot.send_voice(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SendVoice`
|
||||
- `from aiogram.api.types import SendVoice`
|
||||
- `from aiogram.api.types.send_voice import SendVoice`
|
||||
- `from aiogram.methods import SendVoice`
|
||||
- `from aiogram.api.methods import SendVoice`
|
||||
- `from aiogram.api.methods.send_voice import SendVoice`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ result: bool = await bot.set_chat_description(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SetChatDescription`
|
||||
- `from aiogram.api.types import SetChatDescription`
|
||||
- `from aiogram.api.types.set_chat_description import SetChatDescription`
|
||||
- `from aiogram.methods import SetChatDescription`
|
||||
- `from aiogram.api.methods import SetChatDescription`
|
||||
- `from aiogram.api.methods.set_chat_description import SetChatDescription`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ result: bool = await bot.set_chat_permissions(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SetChatPermissions`
|
||||
- `from aiogram.api.types import SetChatPermissions`
|
||||
- `from aiogram.api.types.set_chat_permissions import SetChatPermissions`
|
||||
- `from aiogram.methods import SetChatPermissions`
|
||||
- `from aiogram.api.methods import SetChatPermissions`
|
||||
- `from aiogram.api.methods.set_chat_permissions import SetChatPermissions`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ result: bool = await bot.set_chat_photo(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SetChatPhoto`
|
||||
- `from aiogram.api.types import SetChatPhoto`
|
||||
- `from aiogram.api.types.set_chat_photo import SetChatPhoto`
|
||||
- `from aiogram.methods import SetChatPhoto`
|
||||
- `from aiogram.api.methods import SetChatPhoto`
|
||||
- `from aiogram.api.methods.set_chat_photo import SetChatPhoto`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ result: bool = await bot.set_chat_sticker_set(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SetChatStickerSet`
|
||||
- `from aiogram.api.types import SetChatStickerSet`
|
||||
- `from aiogram.api.types.set_chat_sticker_set import SetChatStickerSet`
|
||||
- `from aiogram.methods import SetChatStickerSet`
|
||||
- `from aiogram.api.methods import SetChatStickerSet`
|
||||
- `from aiogram.api.methods.set_chat_sticker_set import SetChatStickerSet`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ result: bool = await bot.set_chat_title(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SetChatTitle`
|
||||
- `from aiogram.api.types import SetChatTitle`
|
||||
- `from aiogram.api.types.set_chat_title import SetChatTitle`
|
||||
- `from aiogram.methods import SetChatTitle`
|
||||
- `from aiogram.api.methods import SetChatTitle`
|
||||
- `from aiogram.api.methods.set_chat_title import SetChatTitle`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -39,9 +39,9 @@ result: Union[Message, bool] = await bot.set_game_score(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SetGameScore`
|
||||
- `from aiogram.api.types import SetGameScore`
|
||||
- `from aiogram.api.types.set_game_score import SetGameScore`
|
||||
- `from aiogram.methods import SetGameScore`
|
||||
- `from aiogram.api.methods import SetGameScore`
|
||||
- `from aiogram.api.methods.set_game_score import SetGameScore`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@ result: bool = await bot.set_passport_data_errors(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SetPassportDataErrors`
|
||||
- `from aiogram.api.types import SetPassportDataErrors`
|
||||
- `from aiogram.api.types.set_passport_data_errors import SetPassportDataErrors`
|
||||
- `from aiogram.methods import SetPassportDataErrors`
|
||||
- `from aiogram.api.methods import SetPassportDataErrors`
|
||||
- `from aiogram.api.methods.set_passport_data_errors import SetPassportDataErrors`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ result: bool = await bot.set_sticker_position_in_set(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SetStickerPositionInSet`
|
||||
- `from aiogram.api.types import SetStickerPositionInSet`
|
||||
- `from aiogram.api.types.set_sticker_position_in_set import SetStickerPositionInSet`
|
||||
- `from aiogram.methods import SetStickerPositionInSet`
|
||||
- `from aiogram.api.methods import SetStickerPositionInSet`
|
||||
- `from aiogram.api.methods.set_sticker_position_in_set import SetStickerPositionInSet`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -48,9 +48,9 @@ result: bool = await bot.set_webhook(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SetWebhook`
|
||||
- `from aiogram.api.types import SetWebhook`
|
||||
- `from aiogram.api.types.set_webhook import SetWebhook`
|
||||
- `from aiogram.methods import SetWebhook`
|
||||
- `from aiogram.api.methods import SetWebhook`
|
||||
- `from aiogram.api.methods.set_webhook import SetWebhook`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@ result: Union[Message, bool] = await bot.stop_message_live_location(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import StopMessageLiveLocation`
|
||||
- `from aiogram.api.types import StopMessageLiveLocation`
|
||||
- `from aiogram.api.types.stop_message_live_location import StopMessageLiveLocation`
|
||||
- `from aiogram.methods import StopMessageLiveLocation`
|
||||
- `from aiogram.api.methods import StopMessageLiveLocation`
|
||||
- `from aiogram.api.methods.stop_message_live_location import StopMessageLiveLocation`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@ result: Poll = await bot.stop_poll(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import StopPoll`
|
||||
- `from aiogram.api.types import StopPoll`
|
||||
- `from aiogram.api.types.stop_poll import StopPoll`
|
||||
- `from aiogram.methods import StopPoll`
|
||||
- `from aiogram.api.methods import StopPoll`
|
||||
- `from aiogram.api.methods.stop_poll import StopPoll`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ result: bool = await bot.unban_chat_member(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import UnbanChatMember`
|
||||
- `from aiogram.api.types import UnbanChatMember`
|
||||
- `from aiogram.api.types.unban_chat_member import UnbanChatMember`
|
||||
- `from aiogram.methods import UnbanChatMember`
|
||||
- `from aiogram.api.methods import UnbanChatMember`
|
||||
- `from aiogram.api.methods.unban_chat_member import UnbanChatMember`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ result: bool = await bot.unpin_chat_message(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import UnpinChatMessage`
|
||||
- `from aiogram.api.types import UnpinChatMessage`
|
||||
- `from aiogram.api.types.unpin_chat_message import UnpinChatMessage`
|
||||
- `from aiogram.methods import UnpinChatMessage`
|
||||
- `from aiogram.api.methods import UnpinChatMessage`
|
||||
- `from aiogram.api.methods.unpin_chat_message import UnpinChatMessage`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ result: File = await bot.upload_sticker_file(...)
|
|||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import UploadStickerFile`
|
||||
- `from aiogram.api.types import UploadStickerFile`
|
||||
- `from aiogram.api.types.upload_sticker_file import UploadStickerFile`
|
||||
- `from aiogram.methods import UploadStickerFile`
|
||||
- `from aiogram.api.methods import UploadStickerFile`
|
||||
- `from aiogram.api.methods.upload_sticker_file import UploadStickerFile`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue