telegram.InlineQueryResultArticle¶
-
class
telegram.
InlineQueryResultArticle
(id: str, title: str, input_message_content: InputMessageContent, reply_markup: ReplyMarkup = None, url: str = None, hide_url: bool = None, description: str = None, thumb_url: str = None, thumb_width: int = None, thumb_height: int = None, **kwargs)¶ Bases:
telegram.inline.inlinequeryresult.InlineQueryResult
This object represents a Telegram InlineQueryResultArticle.
-
type
¶ ‘article’.
Type: str
-
id
¶ Unique identifier for this result, 1-64 Bytes.
Type: str
-
title
¶ Title of the result.
Type: str
-
input_message_content
¶ Content of the message to be sent.
Type: telegram.InputMessageContent
-
reply_markup
¶ Optional. Inline keyboard attached to the message.
Type: telegram.ReplyMarkup
-
url
¶ Optional. URL of the result.
Type: str
-
hide_url
¶ Optional. Pass
True
, if you don’t want the URL to be shown in the message.Type: bool
-
description
¶ Optional. Short description of the result.
Type: str
-
thumb_url
¶ Optional. Url of the thumbnail for the result.
Type: str
-
thumb_width
¶ Optional. Thumbnail width.
Type: int
-
thumb_height
¶ Optional. Thumbnail height.
Type: int
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) – PassTrue
, 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.
-