InlineQueryResultArticle¶
- class telegram.InlineQueryResultArticle(id, title, input_message_content, reply_markup=None, url=None, hide_url=None, description=None, thumb_url=None, thumb_width=None, thumb_height=None, thumbnail_url=None, thumbnail_width=None, thumbnail_height=None, *, api_kwargs=None)[source]¶
Bases:
telegram.InlineQueryResult
This object represents a Telegram InlineQueryResultArticle.
Examples
- Parameters:
input_message_content (
telegram.InputMessageContent
) – Content of the message to be sent.reply_markup (
telegram.InlineKeyboardMarkup
, optional) – Inline keyboard attached to the message.hide_url (
bool
, optional) – PassTrue
, if you don’t want the URL to be shown in the message.description (
str
, optional) – Short description of the result.Url of the thumbnail for the result.
Deprecated since version 20.2: As of Bot API 6.6 this argument is deprecated in favor of
thumbnail_url
.thumb_width (
int
, optional) –Thumbnail width.
Deprecated since version 20.2: As of Bot API 6.6 this argument is deprecated in favor of
thumbnail_width
.thumb_height (
int
, optional) –Thumbnail height.
Deprecated since version 20.2: As of Bot API 6.6 this argument is deprecated in favor of
thumbnail_height
.thumbnail_url (
str
, optional) –Url of the thumbnail for the result.
New in version 20.2.
thumbnail_width (
int
, optional) –Thumbnail width.
New in version 20.2.
thumbnail_height (
int
, optional) –Thumbnail height.
New in version 20.2.
- property thumb_height[source]¶
Optional. Thumbnail height.
Deprecated since version 20.2: As of Bot API 6.6 this attribute is deprecated in favor of
thumbnail_height
.- Type:
- property thumb_url[source]¶
Optional. Url of the thumbnail for the result.
Deprecated since version 20.2: As of Bot API 6.6 this attribute is deprecated in favor of
thumbnail_url
.- Type:
- property thumb_width[source]¶
Optional. Thumbnail width.
Deprecated since version 20.2: As of Bot API 6.6 this attribute is deprecated in favor of
thumbnail_width
.- Type: