telegram.inlinequeryresultarticle module

This module contains the classes that represent Telegram InlineQueryResultArticle

class telegram.inlinequeryresultarticle.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.inlinequeryresult.InlineQueryResult

This object represents a Telegram InlineQueryResultArticle.

id

str

title

str

input_message_content

telegram.InputMessageContent

reply_markup

telegram.ReplyMarkup

url

str

hide_url

bool

description

str

thumb_url

str

thumb_width

int

thumb_height

int

Deprecated: 4.0

message_text (str): Use InputTextMessageContent instead.

parse_mode (str): Use InputTextMessageContent instead.

disable_web_page_preview (bool): Use InputTextMessageContent instead.

Parameters:
  • id (str) – Unique identifier for this result, 1-64 Bytes
  • title (str) –
  • reply_markup (telegram.ReplyMarkup) –
  • url (Optional[str]) –
  • hide_url (Optional[bool]) –
  • description (Optional[str]) –
  • thumb_url (Optional[str]) –
  • thumb_width (Optional[int]) –
  • thumb_height (Optional[int]) –
  • **kwargs (dict) – Arbitrary keyword arguments.
static de_json(data, bot)