telegram.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, **kwargs)

Bases: telegram.inline.inlinequeryresult.InlineQueryResult

This object represents a Telegram InlineQueryResultArticle.

type

str – ‘article’.

id

str – Unique identifier for this result, 1-64 Bytes.

title

str – Title of the result.

input_message_content

telegram.InputMessageContent – Content of the message to be sent.

reply_markup

telegram.ReplyMarkup – Optional. Inline keyboard attached to the message.

url

str – Optional. URL of the result.

hide_url

bool – Optional. Pass True, if you don’t want the URL to be shown in the message.

description

str – Optional. Short description of the result.

thumb_url

str – Optional. Url of the thumbnail for the result.

thumb_width

int – Optional. Thumbnail width.

thumb_height

int – Optional. Thumbnail height.

Parameters:
  • id (str) – Unique identifier for this result, 1-64 Bytes.
  • title (str) – Title of the result.
  • input_message_content (telegram.InputMessageContent) – Content of the message to be sent.
  • reply_markup (telegram.ReplyMarkup, optional) – Inline keyboard attached to the message
  • url (str, optional) – URL of the result.
  • hide_url (bool, optional) – Pass True, if you don’t want the URL to be shown in the message.
  • description (str, optional) – Short description of the result.
  • thumb_url (str, optional) – Url of the thumbnail for the result.
  • thumb_width (int, optional) – Thumbnail width.
  • thumb_height (int, optional) – Thumbnail height.
  • **kwargs (dict) – Arbitrary keyword arguments.