telegram.InputTextMessageContent¶
- class telegram.InputTextMessageContent(message_text, parse_mode=None, disable_web_page_preview=None, entities=None, *, api_kwargs=None)[source]¶
Bases:
telegram.InputMessageContent
Represents the content of a text message to be sent as the result of an inline query.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
message_text
is equal.Examples
- Parameters
message_text (
str
) – Text of the message to be sent,1
-4096
characters after entities parsing.parse_mode (
str
, optional) – Mode for parsing entities. Seetelegram.constants.ParseMode
and formatting options for more details.entities (List[
telegram.MessageEntity
], optional) – List of special entities that appear in the caption, which can be specified instead ofparse_mode
.disable_web_page_preview (
bool
, optional) – Disables link previews for links in the sent message.
- message_text[source]¶
Text of the message to be sent, 1-
4096
characters after entities parsing.- Type
- parse_mode[source]¶
Optional. Mode for parsing entities. See
telegram.constants.ParseMode
and formatting options for more details.- Type
- entities[source]¶
Optional. List of special entities that appear in the caption, which can be specified instead of
parse_mode
.- Type
List[
telegram.MessageEntity
]