InlineQueryResult¶
- class aiogram.types.inline_query_result.InlineQueryResult(**extra_data: Any)[source]¶
This object represents one result of an inline query. Telegram clients currently support results of the following 20 types:
aiogram.types.inline_query_result_cached_audio.InlineQueryResultCachedAudio
aiogram.types.inline_query_result_cached_document.InlineQueryResultCachedDocument
aiogram.types.inline_query_result_cached_gif.InlineQueryResultCachedGif
aiogram.types.inline_query_result_cached_mpeg4_gif.InlineQueryResultCachedMpeg4Gif
aiogram.types.inline_query_result_cached_photo.InlineQueryResultCachedPhoto
aiogram.types.inline_query_result_cached_sticker.InlineQueryResultCachedSticker
aiogram.types.inline_query_result_cached_video.InlineQueryResultCachedVideo
aiogram.types.inline_query_result_cached_voice.InlineQueryResultCachedVoice
aiogram.types.inline_query_result_article.InlineQueryResultArticle
aiogram.types.inline_query_result_audio.InlineQueryResultAudio
aiogram.types.inline_query_result_contact.InlineQueryResultContact
aiogram.types.inline_query_result_game.InlineQueryResultGame
aiogram.types.inline_query_result_document.InlineQueryResultDocument
aiogram.types.inline_query_result_location.InlineQueryResultLocation
aiogram.types.inline_query_result_mpeg4_gif.InlineQueryResultMpeg4Gif
aiogram.types.inline_query_result_photo.InlineQueryResultPhoto
aiogram.types.inline_query_result_venue.InlineQueryResultVenue
aiogram.types.inline_query_result_video.InlineQueryResultVideo
aiogram.types.inline_query_result_voice.InlineQueryResultVoice
Note: All URLs passed in inline query results will be available to end users and therefore must be assumed to be public.
Source: https://core.telegram.org/bots/api#inlinequeryresult
- 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.