InputTextMessageContent¶
- class aiogram.types.input_text_message_content.InputTextMessageContent(*, message_text: str, parse_mode: str | ~aiogram.client.default.Default | None = <Default('parse_mode')>, entities: ~typing.List[~aiogram.types.message_entity.MessageEntity] | None = None, link_preview_options: ~aiogram.types.link_preview_options.LinkPreviewOptions | ~aiogram.client.default.Default | None = <Default('link_preview')>, disable_web_page_preview: bool | None = None, **extra_data: ~typing.Any)[source]¶
Represents the content of a text message to be sent as the result of an inline query.
Source: https://core.telegram.org/bots/api#inputtextmessagecontent
- message_text: str¶
Text of the message to be sent, 1-4096 characters
- parse_mode: str | Default | None¶
Optional. Mode for parsing entities in the message text. See formatting options for more details.
- entities: List[MessageEntity] | None¶
Optional. List of special entities that appear in message text, which can be specified instead of parse_mode
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_post_init(context: Any, /) None ¶
We need to both initialize private attributes and call the user-defined model_post_init method.
- link_preview_options: LinkPreviewOptions | Default | None¶
Optional. Link preview generation options for the message
- disable_web_page_preview: bool | None¶
Optional. Disables link previews for links in the sent message
Deprecated since version API:7.0: https://core.telegram.org/bots/api-changelog#december-29-2023