Reformat code and docs

This commit is contained in:
Alex Root Junior 2020-01-11 22:59:14 +02:00
parent 690223f4e0
commit 3b2df194a9
95 changed files with 825 additions and 751 deletions

View file

@ -41,24 +41,25 @@ Imports:
- `from aiogram.api.methods import AddStickerToSet`
- `from aiogram.api.methods.add_sticker_to_set import AddStickerToSet`
#### As reply into Webhook
```python3
return AddStickerToSet(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(AddStickerToSet(...))
```
#### In handlers with current bot
```python3
result: bool = await AddStickerToSet(...)
```
#### With specific bot
```python3
result: bool = await bot(AddStickerToSet(...))
```
#### As reply into Webhook in handler
```python3
return AddStickerToSet(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#addstickertoset)
- [aiogram.types.MaskPosition](../types/mask_position.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.MaskPosition](../types/mask_position.md)
- [How to upload file?](../sending_files.md)

View file

@ -43,21 +43,21 @@ Imports:
- `from aiogram.api.methods import AnswerCallbackQuery`
- `from aiogram.api.methods.answer_callback_query import AnswerCallbackQuery`
#### As reply into Webhook
```python3
return AnswerCallbackQuery(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(AnswerCallbackQuery(...))
```
#### In handlers with current bot
```python3
result: bool = await AnswerCallbackQuery(...)
```
#### With specific bot
```python3
result: bool = await bot(AnswerCallbackQuery(...))
```
#### As reply into Webhook in handler
```python3
return AnswerCallbackQuery(...)
```
## Related pages:

View file

@ -45,21 +45,21 @@ Imports:
- `from aiogram.api.methods import AnswerInlineQuery`
- `from aiogram.api.methods.answer_inline_query import AnswerInlineQuery`
#### As reply into Webhook
```python3
return AnswerInlineQuery(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(AnswerInlineQuery(...))
```
#### In handlers with current bot
```python3
result: bool = await AnswerInlineQuery(...)
```
#### With specific bot
```python3
result: bool = await bot(AnswerInlineQuery(...))
```
#### As reply into Webhook in handler
```python3
return AnswerInlineQuery(...)
```
## Related pages:

View file

@ -39,21 +39,21 @@ Imports:
- `from aiogram.api.methods import AnswerPreCheckoutQuery`
- `from aiogram.api.methods.answer_pre_checkout_query import AnswerPreCheckoutQuery`
#### As reply into Webhook
```python3
return AnswerPreCheckoutQuery(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(AnswerPreCheckoutQuery(...))
```
#### In handlers with current bot
```python3
result: bool = await AnswerPreCheckoutQuery(...)
```
#### With specific bot
```python3
result: bool = await bot(AnswerPreCheckoutQuery(...))
```
#### As reply into Webhook in handler
```python3
return AnswerPreCheckoutQuery(...)
```
## Related pages:

View file

@ -40,21 +40,21 @@ Imports:
- `from aiogram.api.methods import AnswerShippingQuery`
- `from aiogram.api.methods.answer_shipping_query import AnswerShippingQuery`
#### As reply into Webhook
```python3
return AnswerShippingQuery(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(AnswerShippingQuery(...))
```
#### In handlers with current bot
```python3
result: bool = await AnswerShippingQuery(...)
```
#### With specific bot
```python3
result: bool = await bot(AnswerShippingQuery(...))
```
#### As reply into Webhook in handler
```python3
return AnswerShippingQuery(...)
```
## Related pages:

View file

@ -43,24 +43,25 @@ Imports:
- `from aiogram.api.methods import CreateNewStickerSet`
- `from aiogram.api.methods.create_new_sticker_set import CreateNewStickerSet`
#### As reply into Webhook
```python3
return CreateNewStickerSet(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(CreateNewStickerSet(...))
```
#### In handlers with current bot
```python3
result: bool = await CreateNewStickerSet(...)
```
#### With specific bot
```python3
result: bool = await bot(CreateNewStickerSet(...))
```
#### As reply into Webhook in handler
```python3
return CreateNewStickerSet(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#createnewstickerset)
- [aiogram.types.MaskPosition](../types/mask_position.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.MaskPosition](../types/mask_position.md)
- [How to upload file?](../sending_files.md)

View file

@ -37,21 +37,21 @@ Imports:
- `from aiogram.api.methods import DeleteChatPhoto`
- `from aiogram.api.methods.delete_chat_photo import DeleteChatPhoto`
#### As reply into Webhook
```python3
return DeleteChatPhoto(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(DeleteChatPhoto(...))
```
#### In handlers with current bot
```python3
result: bool = await DeleteChatPhoto(...)
```
#### With specific bot
```python3
result: bool = await bot(DeleteChatPhoto(...))
```
#### As reply into Webhook in handler
```python3
return DeleteChatPhoto(...)
```
## Related pages:

View file

@ -37,21 +37,21 @@ Imports:
- `from aiogram.api.methods import DeleteChatStickerSet`
- `from aiogram.api.methods.delete_chat_sticker_set import DeleteChatStickerSet`
#### As reply into Webhook
```python3
return DeleteChatStickerSet(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(DeleteChatStickerSet(...))
```
#### In handlers with current bot
```python3
result: bool = await DeleteChatStickerSet(...)
```
#### With specific bot
```python3
result: bool = await bot(DeleteChatStickerSet(...))
```
#### As reply into Webhook in handler
```python3
return DeleteChatStickerSet(...)
```
## Related pages:

View file

@ -52,21 +52,21 @@ Imports:
- `from aiogram.api.methods import DeleteMessage`
- `from aiogram.api.methods.delete_message import DeleteMessage`
#### As reply into Webhook
```python3
return DeleteMessage(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(DeleteMessage(...))
```
#### In handlers with current bot
```python3
result: bool = await DeleteMessage(...)
```
#### With specific bot
```python3
result: bool = await bot(DeleteMessage(...))
```
#### As reply into Webhook in handler
```python3
return DeleteMessage(...)
```
## Related pages:

View file

@ -37,21 +37,21 @@ Imports:
- `from aiogram.api.methods import DeleteStickerFromSet`
- `from aiogram.api.methods.delete_sticker_from_set import DeleteStickerFromSet`
#### As reply into Webhook
```python3
return DeleteStickerFromSet(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(DeleteStickerFromSet(...))
```
#### In handlers with current bot
```python3
result: bool = await DeleteStickerFromSet(...)
```
#### With specific bot
```python3
result: bool = await bot(DeleteStickerFromSet(...))
```
#### As reply into Webhook in handler
```python3
return DeleteStickerFromSet(...)
```
## Related pages:

View file

@ -33,18 +33,18 @@ Imports:
#### As reply into Webhook
```python3
return DeleteWebhook(...)
result: bool = await DeleteWebhook(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(DeleteWebhook(...))
result: bool = await bot(DeleteWebhook(...))
```
#### As reply into Webhook in handler
```python3
return DeleteWebhook(...)
```
#### In handlers with current bot
```python3
result: bool = await DeleteWebhook(...)
```
## Related pages:

View file

@ -42,21 +42,21 @@ Imports:
- `from aiogram.api.methods import EditMessageCaption`
- `from aiogram.api.methods.edit_message_caption import EditMessageCaption`
#### As reply into Webhook
```python3
return EditMessageCaption(...)
```
#### With specific bot
```python3
result: Union[Message, bool] = await bot.emit(EditMessageCaption(...))
```
#### In handlers with current bot
```python3
result: Union[Message, bool] = await EditMessageCaption(...)
```
#### With specific bot
```python3
result: Union[Message, bool] = await bot(EditMessageCaption(...))
```
#### As reply into Webhook in handler
```python3
return EditMessageCaption(...)
```
## Related pages:

View file

@ -42,21 +42,21 @@ Imports:
- `from aiogram.api.methods import EditMessageLiveLocation`
- `from aiogram.api.methods.edit_message_live_location import EditMessageLiveLocation`
#### As reply into Webhook
```python3
return EditMessageLiveLocation(...)
```
#### With specific bot
```python3
result: Union[Message, bool] = await bot.emit(EditMessageLiveLocation(...))
```
#### In handlers with current bot
```python3
result: Union[Message, bool] = await EditMessageLiveLocation(...)
```
#### With specific bot
```python3
result: Union[Message, bool] = await bot(EditMessageLiveLocation(...))
```
#### As reply into Webhook in handler
```python3
return EditMessageLiveLocation(...)
```
## Related pages:

View file

@ -41,21 +41,21 @@ Imports:
- `from aiogram.api.methods import EditMessageMedia`
- `from aiogram.api.methods.edit_message_media import EditMessageMedia`
#### As reply into Webhook
```python3
return EditMessageMedia(...)
```
#### With specific bot
```python3
result: Union[Message, bool] = await bot.emit(EditMessageMedia(...))
```
#### In handlers with current bot
```python3
result: Union[Message, bool] = await EditMessageMedia(...)
```
#### With specific bot
```python3
result: Union[Message, bool] = await bot(EditMessageMedia(...))
```
#### As reply into Webhook in handler
```python3
return EditMessageMedia(...)
```
## Related pages:

View file

@ -40,21 +40,21 @@ Imports:
- `from aiogram.api.methods import EditMessageReplyMarkup`
- `from aiogram.api.methods.edit_message_reply_markup import EditMessageReplyMarkup`
#### As reply into Webhook
```python3
return EditMessageReplyMarkup(...)
```
#### With specific bot
```python3
result: Union[Message, bool] = await bot.emit(EditMessageReplyMarkup(...))
```
#### In handlers with current bot
```python3
result: Union[Message, bool] = await EditMessageReplyMarkup(...)
```
#### With specific bot
```python3
result: Union[Message, bool] = await bot(EditMessageReplyMarkup(...))
```
#### As reply into Webhook in handler
```python3
return EditMessageReplyMarkup(...)
```
## Related pages:

View file

@ -43,21 +43,21 @@ Imports:
- `from aiogram.api.methods import EditMessageText`
- `from aiogram.api.methods.edit_message_text import EditMessageText`
#### As reply into Webhook
```python3
return EditMessageText(...)
```
#### With specific bot
```python3
result: Union[Message, bool] = await bot.emit(EditMessageText(...))
```
#### In handlers with current bot
```python3
result: Union[Message, bool] = await EditMessageText(...)
```
#### With specific bot
```python3
result: Union[Message, bool] = await bot(EditMessageText(...))
```
#### As reply into Webhook in handler
```python3
return EditMessageText(...)
```
## Related pages:

View file

@ -39,21 +39,21 @@ Imports:
- `from aiogram.api.methods import ExportChatInviteLink`
- `from aiogram.api.methods.export_chat_invite_link import ExportChatInviteLink`
#### As reply into Webhook
```python3
return ExportChatInviteLink(...)
```
#### With specific bot
```python3
result: str = await bot.emit(ExportChatInviteLink(...))
```
#### In handlers with current bot
```python3
result: str = await ExportChatInviteLink(...)
```
#### With specific bot
```python3
result: str = await bot(ExportChatInviteLink(...))
```
#### As reply into Webhook in handler
```python3
return ExportChatInviteLink(...)
```
## Related pages:

View file

@ -40,21 +40,21 @@ Imports:
- `from aiogram.api.methods import ForwardMessage`
- `from aiogram.api.methods.forward_message import ForwardMessage`
#### As reply into Webhook
```python3
return ForwardMessage(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(ForwardMessage(...))
```
#### In handlers with current bot
```python3
result: Message = await ForwardMessage(...)
```
#### With specific bot
```python3
result: Message = await bot(ForwardMessage(...))
```
#### As reply into Webhook in handler
```python3
return ForwardMessage(...)
```
## Related pages:

View file

@ -37,17 +37,17 @@ Imports:
- `from aiogram.api.methods import GetChat`
- `from aiogram.api.methods.get_chat import GetChat`
#### With specific bot
```python3
result: Chat = await bot.emit(GetChat(...))
```
#### In handlers with current bot
```python3
result: Chat = await GetChat(...)
```
#### With specific bot
```python3
result: Chat = await bot(GetChat(...))
```
## Related pages:

View file

@ -37,17 +37,17 @@ Imports:
- `from aiogram.api.methods import GetChatAdministrators`
- `from aiogram.api.methods.get_chat_administrators import GetChatAdministrators`
#### With specific bot
```python3
result: List[ChatMember] = await bot.emit(GetChatAdministrators(...))
```
#### In handlers with current bot
```python3
result: List[ChatMember] = await GetChatAdministrators(...)
```
#### With specific bot
```python3
result: List[ChatMember] = await bot(GetChatAdministrators(...))
```
## Related pages:

View file

@ -38,17 +38,17 @@ Imports:
- `from aiogram.api.methods import GetChatMember`
- `from aiogram.api.methods.get_chat_member import GetChatMember`
#### With specific bot
```python3
result: ChatMember = await bot.emit(GetChatMember(...))
```
#### In handlers with current bot
```python3
result: ChatMember = await GetChatMember(...)
```
#### With specific bot
```python3
result: ChatMember = await bot(GetChatMember(...))
```
## Related pages:

View file

@ -37,17 +37,17 @@ Imports:
- `from aiogram.api.methods import GetChatMembersCount`
- `from aiogram.api.methods.get_chat_members_count import GetChatMembersCount`
#### With specific bot
```python3
result: int = await bot.emit(GetChatMembersCount(...))
```
#### In handlers with current bot
```python3
result: int = await GetChatMembersCount(...)
```
#### With specific bot
```python3
result: int = await bot(GetChatMembersCount(...))
```
## Related pages:

View file

@ -39,17 +39,17 @@ Imports:
- `from aiogram.api.methods import GetFile`
- `from aiogram.api.methods.get_file import GetFile`
#### With specific bot
```python3
result: File = await bot.emit(GetFile(...))
```
#### In handlers with current bot
```python3
result: File = await GetFile(...)
```
#### With specific bot
```python3
result: File = await bot(GetFile(...))
```
## Related pages:

View file

@ -42,17 +42,17 @@ Imports:
- `from aiogram.api.methods import GetGameHighScores`
- `from aiogram.api.methods.get_game_high_scores import GetGameHighScores`
#### With specific bot
```python3
result: List[GameHighScore] = await bot.emit(GetGameHighScores(...))
```
#### In handlers with current bot
```python3
result: List[GameHighScore] = await GetGameHighScores(...)
```
#### With specific bot
```python3
result: List[GameHighScore] = await bot(GetGameHighScores(...))
```
## Related pages:

View file

@ -31,17 +31,17 @@ Imports:
- `from aiogram.api.methods import GetMe`
- `from aiogram.api.methods.get_me import GetMe`
#### With specific bot
```python3
result: User = await bot.emit(GetMe(...))
```
#### In handlers with current bot
```python3
result: User = await GetMe(...)
```
#### With specific bot
```python3
result: User = await bot(GetMe(...))
```
## Related pages:

View file

@ -37,17 +37,17 @@ Imports:
- `from aiogram.api.methods import GetStickerSet`
- `from aiogram.api.methods.get_sticker_set import GetStickerSet`
#### With specific bot
```python3
result: StickerSet = await bot.emit(GetStickerSet(...))
```
#### In handlers with current bot
```python3
result: StickerSet = await GetStickerSet(...)
```
#### With specific bot
```python3
result: StickerSet = await bot(GetStickerSet(...))
```
## Related pages:

View file

@ -46,17 +46,17 @@ Imports:
- `from aiogram.api.methods import GetUpdates`
- `from aiogram.api.methods.get_updates import GetUpdates`
#### With specific bot
```python3
result: List[Update] = await bot.emit(GetUpdates(...))
```
#### In handlers with current bot
```python3
result: List[Update] = await GetUpdates(...)
```
#### With specific bot
```python3
result: List[Update] = await bot(GetUpdates(...))
```
## Related pages:

View file

@ -39,17 +39,17 @@ Imports:
- `from aiogram.api.methods import GetUserProfilePhotos`
- `from aiogram.api.methods.get_user_profile_photos import GetUserProfilePhotos`
#### With specific bot
```python3
result: UserProfilePhotos = await bot.emit(GetUserProfilePhotos(...))
```
#### In handlers with current bot
```python3
result: UserProfilePhotos = await GetUserProfilePhotos(...)
```
#### With specific bot
```python3
result: UserProfilePhotos = await bot(GetUserProfilePhotos(...))
```
## Related pages:

View file

@ -31,17 +31,17 @@ Imports:
- `from aiogram.api.methods import GetWebhookInfo`
- `from aiogram.api.methods.get_webhook_info import GetWebhookInfo`
#### With specific bot
```python3
result: WebhookInfo = await bot.emit(GetWebhookInfo(...))
```
#### In handlers with current bot
```python3
result: WebhookInfo = await GetWebhookInfo(...)
```
#### With specific bot
```python3
result: WebhookInfo = await bot(GetWebhookInfo(...))
```
## Related pages:

View file

@ -39,21 +39,21 @@ Imports:
- `from aiogram.api.methods import KickChatMember`
- `from aiogram.api.methods.kick_chat_member import KickChatMember`
#### As reply into Webhook
```python3
return KickChatMember(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(KickChatMember(...))
```
#### In handlers with current bot
```python3
result: bool = await KickChatMember(...)
```
#### With specific bot
```python3
result: bool = await bot(KickChatMember(...))
```
#### As reply into Webhook in handler
```python3
return KickChatMember(...)
```
## Related pages:

View file

@ -37,21 +37,21 @@ Imports:
- `from aiogram.api.methods import LeaveChat`
- `from aiogram.api.methods.leave_chat import LeaveChat`
#### As reply into Webhook
```python3
return LeaveChat(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(LeaveChat(...))
```
#### In handlers with current bot
```python3
result: bool = await LeaveChat(...)
```
#### With specific bot
```python3
result: bool = await bot(LeaveChat(...))
```
#### As reply into Webhook in handler
```python3
return LeaveChat(...)
```
## Related pages:

View file

@ -39,21 +39,21 @@ Imports:
- `from aiogram.api.methods import PinChatMessage`
- `from aiogram.api.methods.pin_chat_message import PinChatMessage`
#### As reply into Webhook
```python3
return PinChatMessage(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(PinChatMessage(...))
```
#### In handlers with current bot
```python3
result: bool = await PinChatMessage(...)
```
#### With specific bot
```python3
result: bool = await bot(PinChatMessage(...))
```
#### As reply into Webhook in handler
```python3
return PinChatMessage(...)
```
## Related pages:

View file

@ -46,21 +46,21 @@ Imports:
- `from aiogram.api.methods import PromoteChatMember`
- `from aiogram.api.methods.promote_chat_member import PromoteChatMember`
#### As reply into Webhook
```python3
return PromoteChatMember(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(PromoteChatMember(...))
```
#### In handlers with current bot
```python3
result: bool = await PromoteChatMember(...)
```
#### With specific bot
```python3
result: bool = await bot(PromoteChatMember(...))
```
#### As reply into Webhook in handler
```python3
return PromoteChatMember(...)
```
## Related pages:

View file

@ -40,21 +40,21 @@ Imports:
- `from aiogram.api.methods import RestrictChatMember`
- `from aiogram.api.methods.restrict_chat_member import RestrictChatMember`
#### As reply into Webhook
```python3
return RestrictChatMember(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(RestrictChatMember(...))
```
#### In handlers with current bot
```python3
result: bool = await RestrictChatMember(...)
```
#### With specific bot
```python3
result: bool = await bot(RestrictChatMember(...))
```
#### As reply into Webhook in handler
```python3
return RestrictChatMember(...)
```
## Related pages:

View file

@ -47,28 +47,29 @@ Imports:
- `from aiogram.api.methods import SendAnimation`
- `from aiogram.api.methods.send_animation import SendAnimation`
#### As reply into Webhook
```python3
return SendAnimation(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(SendAnimation(...))
```
#### In handlers with current bot
```python3
result: Message = await SendAnimation(...)
```
#### With specific bot
```python3
result: Message = await bot(SendAnimation(...))
```
#### As reply into Webhook in handler
```python3
return SendAnimation(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#sendanimation)
- [aiogram.types.ForceReply](../types/force_reply.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [How to upload file?](../sending_files.md)

View file

@ -49,28 +49,29 @@ Imports:
- `from aiogram.api.methods import SendAudio`
- `from aiogram.api.methods.send_audio import SendAudio`
#### As reply into Webhook
```python3
return SendAudio(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(SendAudio(...))
```
#### In handlers with current bot
```python3
result: Message = await SendAudio(...)
```
#### With specific bot
```python3
result: Message = await bot(SendAudio(...))
```
#### As reply into Webhook in handler
```python3
return SendAudio(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#sendaudio)
- [aiogram.types.ForceReply](../types/force_reply.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [How to upload file?](../sending_files.md)

View file

@ -42,21 +42,21 @@ Imports:
- `from aiogram.api.methods import SendChatAction`
- `from aiogram.api.methods.send_chat_action import SendChatAction`
#### As reply into Webhook
```python3
return SendChatAction(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(SendChatAction(...))
```
#### In handlers with current bot
```python3
result: bool = await SendChatAction(...)
```
#### With specific bot
```python3
result: bool = await bot(SendChatAction(...))
```
#### As reply into Webhook in handler
```python3
return SendChatAction(...)
```
## Related pages:

View file

@ -44,27 +44,27 @@ Imports:
- `from aiogram.api.methods import SendContact`
- `from aiogram.api.methods.send_contact import SendContact`
#### As reply into Webhook
```python3
return SendContact(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(SendContact(...))
```
#### In handlers with current bot
```python3
result: Message = await SendContact(...)
```
#### With specific bot
```python3
result: Message = await bot(SendContact(...))
```
#### As reply into Webhook in handler
```python3
return SendContact(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#sendcontact)
- [aiogram.types.ForceReply](../types/force_reply.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)

View file

@ -44,28 +44,29 @@ Imports:
- `from aiogram.api.methods import SendDocument`
- `from aiogram.api.methods.send_document import SendDocument`
#### As reply into Webhook
```python3
return SendDocument(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(SendDocument(...))
```
#### In handlers with current bot
```python3
result: Message = await SendDocument(...)
```
#### With specific bot
```python3
result: Message = await bot(SendDocument(...))
```
#### As reply into Webhook in handler
```python3
return SendDocument(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#senddocument)
- [aiogram.types.ForceReply](../types/force_reply.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [How to upload file?](../sending_files.md)

View file

@ -41,21 +41,21 @@ Imports:
- `from aiogram.api.methods import SendGame`
- `from aiogram.api.methods.send_game import SendGame`
#### As reply into Webhook
```python3
return SendGame(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(SendGame(...))
```
#### In handlers with current bot
```python3
result: Message = await SendGame(...)
```
#### With specific bot
```python3
result: Message = await bot(SendGame(...))
```
#### As reply into Webhook in handler
```python3
return SendGame(...)
```
## Related pages:

View file

@ -59,25 +59,25 @@ Imports:
- `from aiogram.api.methods import SendInvoice`
- `from aiogram.api.methods.send_invoice import SendInvoice`
#### As reply into Webhook
```python3
return SendInvoice(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(SendInvoice(...))
```
#### In handlers with current bot
```python3
result: Message = await SendInvoice(...)
```
#### With specific bot
```python3
result: Message = await bot(SendInvoice(...))
```
#### As reply into Webhook in handler
```python3
return SendInvoice(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#sendinvoice)
- [aiogram.types.LabeledPrice](../types/labeled_price.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.LabeledPrice](../types/labeled_price.md)
- [aiogram.types.Message](../types/message.md)

View file

@ -43,27 +43,27 @@ Imports:
- `from aiogram.api.methods import SendLocation`
- `from aiogram.api.methods.send_location import SendLocation`
#### As reply into Webhook
```python3
return SendLocation(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(SendLocation(...))
```
#### In handlers with current bot
```python3
result: Message = await SendLocation(...)
```
#### With specific bot
```python3
result: Message = await bot(SendLocation(...))
```
#### As reply into Webhook in handler
```python3
return SendLocation(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#sendlocation)
- [aiogram.types.ForceReply](../types/force_reply.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)

View file

@ -40,21 +40,21 @@ Imports:
- `from aiogram.api.methods import SendMediaGroup`
- `from aiogram.api.methods.send_media_group import SendMediaGroup`
#### As reply into Webhook
```python3
return SendMediaGroup(...)
```
#### With specific bot
```python3
result: List[Message] = await bot.emit(SendMediaGroup(...))
```
#### In handlers with current bot
```python3
result: List[Message] = await SendMediaGroup(...)
```
#### With specific bot
```python3
result: List[Message] = await bot(SendMediaGroup(...))
```
#### As reply into Webhook in handler
```python3
return SendMediaGroup(...)
```
## Related pages:

View file

@ -43,27 +43,27 @@ Imports:
- `from aiogram.api.methods import SendMessage`
- `from aiogram.api.methods.send_message import SendMessage`
#### As reply into Webhook
```python3
return SendMessage(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(SendMessage(...))
```
#### In handlers with current bot
```python3
result: Message = await SendMessage(...)
```
#### With specific bot
```python3
result: Message = await bot(SendMessage(...))
```
#### As reply into Webhook in handler
```python3
return SendMessage(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#sendmessage)
- [aiogram.types.ForceReply](../types/force_reply.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)

View file

@ -43,28 +43,29 @@ Imports:
- `from aiogram.api.methods import SendPhoto`
- `from aiogram.api.methods.send_photo import SendPhoto`
#### As reply into Webhook
```python3
return SendPhoto(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(SendPhoto(...))
```
#### In handlers with current bot
```python3
result: Message = await SendPhoto(...)
```
#### With specific bot
```python3
result: Message = await bot(SendPhoto(...))
```
#### As reply into Webhook in handler
```python3
return SendPhoto(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#sendphoto)
- [aiogram.types.ForceReply](../types/force_reply.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [How to upload file?](../sending_files.md)

View file

@ -42,27 +42,27 @@ Imports:
- `from aiogram.api.methods import SendPoll`
- `from aiogram.api.methods.send_poll import SendPoll`
#### As reply into Webhook
```python3
return SendPoll(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(SendPoll(...))
```
#### In handlers with current bot
```python3
result: Message = await SendPoll(...)
```
#### With specific bot
```python3
result: Message = await bot(SendPoll(...))
```
#### As reply into Webhook in handler
```python3
return SendPoll(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#sendpoll)
- [aiogram.types.ForceReply](../types/force_reply.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)

View file

@ -41,28 +41,29 @@ Imports:
- `from aiogram.api.methods import SendSticker`
- `from aiogram.api.methods.send_sticker import SendSticker`
#### As reply into Webhook
```python3
return SendSticker(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(SendSticker(...))
```
#### In handlers with current bot
```python3
result: Message = await SendSticker(...)
```
#### With specific bot
```python3
result: Message = await bot(SendSticker(...))
```
#### As reply into Webhook in handler
```python3
return SendSticker(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#sendsticker)
- [aiogram.types.ForceReply](../types/force_reply.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [How to upload file?](../sending_files.md)

View file

@ -46,27 +46,27 @@ Imports:
- `from aiogram.api.methods import SendVenue`
- `from aiogram.api.methods.send_venue import SendVenue`
#### As reply into Webhook
```python3
return SendVenue(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(SendVenue(...))
```
#### In handlers with current bot
```python3
result: Message = await SendVenue(...)
```
#### With specific bot
```python3
result: Message = await bot(SendVenue(...))
```
#### As reply into Webhook in handler
```python3
return SendVenue(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#sendvenue)
- [aiogram.types.ForceReply](../types/force_reply.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)

View file

@ -48,28 +48,29 @@ Imports:
- `from aiogram.api.methods import SendVideo`
- `from aiogram.api.methods.send_video import SendVideo`
#### As reply into Webhook
```python3
return SendVideo(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(SendVideo(...))
```
#### In handlers with current bot
```python3
result: Message = await SendVideo(...)
```
#### With specific bot
```python3
result: Message = await bot(SendVideo(...))
```
#### As reply into Webhook in handler
```python3
return SendVideo(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#sendvideo)
- [aiogram.types.ForceReply](../types/force_reply.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [How to upload file?](../sending_files.md)

View file

@ -44,28 +44,29 @@ Imports:
- `from aiogram.api.methods import SendVideoNote`
- `from aiogram.api.methods.send_video_note import SendVideoNote`
#### As reply into Webhook
```python3
return SendVideoNote(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(SendVideoNote(...))
```
#### In handlers with current bot
```python3
result: Message = await SendVideoNote(...)
```
#### With specific bot
```python3
result: Message = await bot(SendVideoNote(...))
```
#### As reply into Webhook in handler
```python3
return SendVideoNote(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#sendvideonote)
- [aiogram.types.ForceReply](../types/force_reply.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [How to upload file?](../sending_files.md)

View file

@ -44,28 +44,29 @@ Imports:
- `from aiogram.api.methods import SendVoice`
- `from aiogram.api.methods.send_voice import SendVoice`
#### As reply into Webhook
```python3
return SendVoice(...)
```
#### With specific bot
```python3
result: Message = await bot.emit(SendVoice(...))
```
#### In handlers with current bot
```python3
result: Message = await SendVoice(...)
```
#### With specific bot
```python3
result: Message = await bot(SendVoice(...))
```
#### As reply into Webhook in handler
```python3
return SendVoice(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#sendvoice)
- [aiogram.types.ForceReply](../types/force_reply.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md)
- [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md)
- [How to upload file?](../sending_files.md)

View file

@ -0,0 +1,60 @@
# setChatAdministratorCustomTitle
## Description
Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.
## Arguments
| Name | Type | Description |
| - | - | - |
| `chat_id` | `#!python3 Union[int, str]` | Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) |
| `user_id` | `#!python3 int` | Unique identifier of the target user |
| `custom_title` | `#!python3 str` | New custom title for the administrator; 0-16 characters, emoji are not allowed |
## Response
Type: `#!python3 bool`
Description: Returns True on success.
## Usage
### As bot method bot
```python3
result: bool = await bot.set_chat_administrator_custom_title(...)
```
### Method as object
Imports:
- `from aiogram.methods import SetChatAdministratorCustomTitle`
- `from aiogram.api.methods import SetChatAdministratorCustomTitle`
- `from aiogram.api.methods.set_chat_administrator_custom_title import SetChatAdministratorCustomTitle`
#### In handlers with current bot
```python3
result: bool = await SetChatAdministratorCustomTitle(...)
```
#### With specific bot
```python3
result: bool = await bot(SetChatAdministratorCustomTitle(...))
```
#### As reply into Webhook in handler
```python3
return SetChatAdministratorCustomTitle(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#setchatadministratorcustomtitle)

View file

@ -38,21 +38,21 @@ Imports:
- `from aiogram.api.methods import SetChatDescription`
- `from aiogram.api.methods.set_chat_description import SetChatDescription`
#### As reply into Webhook
```python3
return SetChatDescription(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(SetChatDescription(...))
```
#### In handlers with current bot
```python3
result: bool = await SetChatDescription(...)
```
#### With specific bot
```python3
result: bool = await bot(SetChatDescription(...))
```
#### As reply into Webhook in handler
```python3
return SetChatDescription(...)
```
## Related pages:

View file

@ -38,21 +38,21 @@ Imports:
- `from aiogram.api.methods import SetChatPermissions`
- `from aiogram.api.methods.set_chat_permissions import SetChatPermissions`
#### As reply into Webhook
```python3
return SetChatPermissions(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(SetChatPermissions(...))
```
#### In handlers with current bot
```python3
result: bool = await SetChatPermissions(...)
```
#### With specific bot
```python3
result: bool = await bot(SetChatPermissions(...))
```
#### As reply into Webhook in handler
```python3
return SetChatPermissions(...)
```
## Related pages:

View file

@ -38,19 +38,20 @@ Imports:
- `from aiogram.api.methods import SetChatPhoto`
- `from aiogram.api.methods.set_chat_photo import SetChatPhoto`
#### With specific bot
```python3
result: bool = await bot.emit(SetChatPhoto(...))
```
#### In handlers with current bot
```python3
result: bool = await SetChatPhoto(...)
```
#### With specific bot
```python3
result: bool = await bot(SetChatPhoto(...))
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#setchatphoto)
- [aiogram.types.InputFile](../types/input_file.md)
- [How to upload file?](../sending_files.md)

View file

@ -38,21 +38,21 @@ Imports:
- `from aiogram.api.methods import SetChatStickerSet`
- `from aiogram.api.methods.set_chat_sticker_set import SetChatStickerSet`
#### As reply into Webhook
```python3
return SetChatStickerSet(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(SetChatStickerSet(...))
```
#### In handlers with current bot
```python3
result: bool = await SetChatStickerSet(...)
```
#### With specific bot
```python3
result: bool = await bot(SetChatStickerSet(...))
```
#### As reply into Webhook in handler
```python3
return SetChatStickerSet(...)
```
## Related pages:

View file

@ -38,21 +38,21 @@ Imports:
- `from aiogram.api.methods import SetChatTitle`
- `from aiogram.api.methods.set_chat_title import SetChatTitle`
#### As reply into Webhook
```python3
return SetChatTitle(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(SetChatTitle(...))
```
#### In handlers with current bot
```python3
result: bool = await SetChatTitle(...)
```
#### With specific bot
```python3
result: bool = await bot(SetChatTitle(...))
```
#### As reply into Webhook in handler
```python3
return SetChatTitle(...)
```
## Related pages:

View file

@ -43,21 +43,21 @@ Imports:
- `from aiogram.api.methods import SetGameScore`
- `from aiogram.api.methods.set_game_score import SetGameScore`
#### As reply into Webhook
```python3
return SetGameScore(...)
```
#### With specific bot
```python3
result: Union[Message, bool] = await bot.emit(SetGameScore(...))
```
#### In handlers with current bot
```python3
result: Union[Message, bool] = await SetGameScore(...)
```
#### With specific bot
```python3
result: Union[Message, bool] = await bot(SetGameScore(...))
```
#### As reply into Webhook in handler
```python3
return SetGameScore(...)
```
## Related pages:

View file

@ -40,21 +40,21 @@ Imports:
- `from aiogram.api.methods import SetPassportDataErrors`
- `from aiogram.api.methods.set_passport_data_errors import SetPassportDataErrors`
#### As reply into Webhook
```python3
return SetPassportDataErrors(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(SetPassportDataErrors(...))
```
#### In handlers with current bot
```python3
result: bool = await SetPassportDataErrors(...)
```
#### With specific bot
```python3
result: bool = await bot(SetPassportDataErrors(...))
```
#### As reply into Webhook in handler
```python3
return SetPassportDataErrors(...)
```
## Related pages:

View file

@ -38,21 +38,21 @@ Imports:
- `from aiogram.api.methods import SetStickerPositionInSet`
- `from aiogram.api.methods.set_sticker_position_in_set import SetStickerPositionInSet`
#### As reply into Webhook
```python3
return SetStickerPositionInSet(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(SetStickerPositionInSet(...))
```
#### In handlers with current bot
```python3
result: bool = await SetStickerPositionInSet(...)
```
#### With specific bot
```python3
result: bool = await bot(SetStickerPositionInSet(...))
```
#### As reply into Webhook in handler
```python3
return SetStickerPositionInSet(...)
```
## Related pages:

View file

@ -52,23 +52,24 @@ Imports:
- `from aiogram.api.methods import SetWebhook`
- `from aiogram.api.methods.set_webhook import SetWebhook`
#### As reply into Webhook
```python3
return SetWebhook(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(SetWebhook(...))
```
#### In handlers with current bot
```python3
result: bool = await SetWebhook(...)
```
#### With specific bot
```python3
result: bool = await bot(SetWebhook(...))
```
#### As reply into Webhook in handler
```python3
return SetWebhook(...)
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#setwebhook)
- [aiogram.types.InputFile](../types/input_file.md)
- [How to upload file?](../sending_files.md)

View file

@ -40,21 +40,21 @@ Imports:
- `from aiogram.api.methods import StopMessageLiveLocation`
- `from aiogram.api.methods.stop_message_live_location import StopMessageLiveLocation`
#### As reply into Webhook
```python3
return StopMessageLiveLocation(...)
```
#### With specific bot
```python3
result: Union[Message, bool] = await bot.emit(StopMessageLiveLocation(...))
```
#### In handlers with current bot
```python3
result: Union[Message, bool] = await StopMessageLiveLocation(...)
```
#### With specific bot
```python3
result: Union[Message, bool] = await bot(StopMessageLiveLocation(...))
```
#### As reply into Webhook in handler
```python3
return StopMessageLiveLocation(...)
```
## Related pages:

View file

@ -39,21 +39,21 @@ Imports:
- `from aiogram.api.methods import StopPoll`
- `from aiogram.api.methods.stop_poll import StopPoll`
#### As reply into Webhook
```python3
return StopPoll(...)
```
#### With specific bot
```python3
result: Poll = await bot.emit(StopPoll(...))
```
#### In handlers with current bot
```python3
result: Poll = await StopPoll(...)
```
#### With specific bot
```python3
result: Poll = await bot(StopPoll(...))
```
#### As reply into Webhook in handler
```python3
return StopPoll(...)
```
## Related pages:

View file

@ -38,21 +38,21 @@ Imports:
- `from aiogram.api.methods import UnbanChatMember`
- `from aiogram.api.methods.unban_chat_member import UnbanChatMember`
#### As reply into Webhook
```python3
return UnbanChatMember(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(UnbanChatMember(...))
```
#### In handlers with current bot
```python3
result: bool = await UnbanChatMember(...)
```
#### With specific bot
```python3
result: bool = await bot(UnbanChatMember(...))
```
#### As reply into Webhook in handler
```python3
return UnbanChatMember(...)
```
## Related pages:

View file

@ -37,21 +37,21 @@ Imports:
- `from aiogram.api.methods import UnpinChatMessage`
- `from aiogram.api.methods.unpin_chat_message import UnpinChatMessage`
#### As reply into Webhook
```python3
return UnpinChatMessage(...)
```
#### With specific bot
```python3
result: bool = await bot.emit(UnpinChatMessage(...))
```
#### In handlers with current bot
```python3
result: bool = await UnpinChatMessage(...)
```
#### With specific bot
```python3
result: bool = await bot(UnpinChatMessage(...))
```
#### As reply into Webhook in handler
```python3
return UnpinChatMessage(...)
```
## Related pages:

View file

@ -38,20 +38,21 @@ Imports:
- `from aiogram.api.methods import UploadStickerFile`
- `from aiogram.api.methods.upload_sticker_file import UploadStickerFile`
#### With specific bot
```python3
result: File = await bot.emit(UploadStickerFile(...))
```
#### In handlers with current bot
```python3
result: File = await UploadStickerFile(...)
```
#### With specific bot
```python3
result: File = await bot(UploadStickerFile(...))
```
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#uploadstickerfile)
- [aiogram.types.InputFile](../types/input_file.md)
- [aiogram.types.File](../types/file.md)
- [aiogram.types.InputFile](../types/input_file.md)
- [How to upload file?](../sending_files.md)

View file

@ -27,6 +27,6 @@ This object represents a game. Use BotFather to create and edit games, their sho
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#game)
- [aiogram.types.MessageEntity](../types/message_entity.md)
- [aiogram.types.Animation](../types/animation.md)
- [aiogram.types.MessageEntity](../types/message_entity.md)
- [aiogram.types.PhotoSize](../types/photo_size.md)

View file

@ -29,5 +29,5 @@ This object represents one button of an inline keyboard. You must use exactly on
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinekeyboardbutton)
- [aiogram.types.LoginUrl](../types/login_url.md)
- [aiogram.types.CallbackGame](../types/callback_game.md)
- [aiogram.types.LoginUrl](../types/login_url.md)

View file

@ -32,5 +32,5 @@ Represents a link to an article or web page.
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultarticle)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -33,5 +33,5 @@ Note: This will only work in Telegram versions released after 9 April, 2016. Old
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultaudio)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -30,5 +30,5 @@ Note: This will only work in Telegram versions released after 9 April, 2016. Old
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultcachedaudio)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -32,5 +32,5 @@ Note: This will only work in Telegram versions released after 9 April, 2016. Old
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultcacheddocument)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -29,5 +29,5 @@ Represents a link to an animated GIF file stored on the Telegram servers. By def
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultcachedgif)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -29,5 +29,5 @@ Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) st
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultcachedmpeg4gif)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -30,5 +30,5 @@ Represents a link to a photo stored on the Telegram servers. By default, this ph
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultcachedphoto)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -28,5 +28,5 @@ Note: This will only work in Telegram versions released after 9 April, 2016 for
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultcachedsticker)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -30,5 +30,5 @@ Represents a link to a video file stored on the Telegram servers. By default, th
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultcachedvideo)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -31,5 +31,5 @@ Note: This will only work in Telegram versions released after 9 April, 2016. Old
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultcachedvoice)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -34,5 +34,5 @@ Note: This will only work in Telegram versions released after 9 April, 2016. Old
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultcontact)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -36,5 +36,5 @@ Note: This will only work in Telegram versions released after 9 April, 2016. Old
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultdocument)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -33,5 +33,5 @@ Represents a link to an animated GIF file. By default, this animated GIF file wi
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultgif)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -34,5 +34,5 @@ Note: This will only work in Telegram versions released after 9 April, 2016. Old
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultlocation)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -33,5 +33,5 @@ Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). B
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -33,5 +33,5 @@ Represents a link to a photo. By default, this photo will be sent by the user wi
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultphoto)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -36,5 +36,5 @@ Note: This will only work in Telegram versions released after 9 April, 2016. Old
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultvenue)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -37,5 +37,5 @@ If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube),
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultvideo)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -32,5 +32,5 @@ Note: This will only work in Telegram versions released after 9 April, 2016. Old
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inlinequeryresultvoice)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.InputMessageContent](../types/input_message_content.md)

View file

@ -14,5 +14,6 @@ This object represents the contents of a file to be uploaded. Must be posted usi
- `from aiogram.api.types.input_file import InputFile`
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#inputfile)
- [How to upload file?](../sending_files.md)

View file

@ -68,23 +68,23 @@ This object represents a message.
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#message)
- [aiogram.types.Poll](../types/poll.md)
- [aiogram.types.PassportData](../types/passport_data.md)
- [aiogram.types.Video](../types/video.md)
- [aiogram.types.MessageEntity](../types/message_entity.md)
- [aiogram.types.PhotoSize](../types/photo_size.md)
- [aiogram.types.Animation](../types/animation.md)
- [aiogram.types.Audio](../types/audio.md)
- [aiogram.types.Chat](../types/chat.md)
- [aiogram.types.Contact](../types/contact.md)
- [aiogram.types.Document](../types/document.md)
- [aiogram.types.Animation](../types/animation.md)
- [aiogram.types.SuccessfulPayment](../types/successful_payment.md)
- [aiogram.types.Chat](../types/chat.md)
- [aiogram.types.Audio](../types/audio.md)
- [aiogram.types.Game](../types/game.md)
- [aiogram.types.Voice](../types/voice.md)
- [aiogram.types.VideoNote](../types/video_note.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.Invoice](../types/invoice.md)
- [aiogram.types.Location](../types/location.md)
- [aiogram.types.MessageEntity](../types/message_entity.md)
- [aiogram.types.PassportData](../types/passport_data.md)
- [aiogram.types.PhotoSize](../types/photo_size.md)
- [aiogram.types.Poll](../types/poll.md)
- [aiogram.types.Sticker](../types/sticker.md)
- [aiogram.types.InlineKeyboardMarkup](../types/inline_keyboard_markup.md)
- [aiogram.types.SuccessfulPayment](../types/successful_payment.md)
- [aiogram.types.User](../types/user.md)
- [aiogram.types.Venue](../types/venue.md)
- [aiogram.types.Video](../types/video.md)
- [aiogram.types.VideoNote](../types/video_note.md)
- [aiogram.types.Voice](../types/voice.md)

View file

@ -23,5 +23,5 @@ Contains information about Telegram Passport data shared with the bot by the use
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#passportdata)
- [aiogram.types.EncryptedPassportElement](../types/encrypted_passport_element.md)
- [aiogram.types.EncryptedCredentials](../types/encrypted_credentials.md)
- [aiogram.types.EncryptedPassportElement](../types/encrypted_passport_element.md)

View file

@ -34,10 +34,10 @@ At most one of the optional parameters can be present in any given update.
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#update)
- [aiogram.types.Poll](../types/poll.md)
- [aiogram.types.CallbackQuery](../types/callback_query.md)
- [aiogram.types.InlineQuery](../types/inline_query.md)
- [aiogram.types.ChosenInlineResult](../types/chosen_inline_result.md)
- [aiogram.types.InlineQuery](../types/inline_query.md)
- [aiogram.types.Message](../types/message.md)
- [aiogram.types.ShippingQuery](../types/shipping_query.md)
- [aiogram.types.Poll](../types/poll.md)
- [aiogram.types.PreCheckoutQuery](../types/pre_checkout_query.md)
- [aiogram.types.ShippingQuery](../types/shipping_query.md)