InlineQueryResultArticle#
- class aiogram.types.inline_query_result_article.InlineQueryResultArticle(*, type: Literal[InlineQueryResultType.ARTICLE] = InlineQueryResultType.ARTICLE, id: str, title: str, input_message_content: InputTextMessageContent | InputLocationMessageContent | InputVenueMessageContent | InputContactMessageContent | InputInvoiceMessageContent, reply_markup: InlineKeyboardMarkup | None = None, url: str | None = None, hide_url: bool | None = None, description: str | None = None, thumbnail_url: str | None = None, thumbnail_width: int | None = None, thumbnail_height: int | None = None, **extra_data: Any)[source]#
Represents a link to an article or web page.
Source: https://core.telegram.org/bots/api#inlinequeryresultarticle
- type: Literal[InlineQueryResultType.ARTICLE]#
Type of the result, must be article
- id: str#
Unique identifier for this result, 1-64 Bytes
- title: str#
Title of the result
- input_message_content: InputTextMessageContent | InputLocationMessageContent | InputVenueMessageContent | InputContactMessageContent | InputInvoiceMessageContent#
Content of the message to be sent
- reply_markup: InlineKeyboardMarkup | None#
Optional. Inline keyboard attached to the message
- url: str | None#
Optional. URL of the result
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_post_init(_ModelMetaclass__context: Any) None #
We need to both initialize private attributes and call the user-defined model_post_init method.
- hide_url: bool | None#
Optional. Pass
True
if you don’t want the URL to be shown in the message
- description: str | None#
Optional. Short description of the result
- thumbnail_url: str | None#
Optional. Url of the thumbnail for the result
- thumbnail_width: int | None#
Optional. Thumbnail width
- thumbnail_height: int | None#
Optional. Thumbnail height