telegram.InputTextMessageContent¶
-
class
telegram.
InputTextMessageContent
(message_text, parse_mode=None, disable_web_page_preview=None, **kwargs)¶ Bases:
telegram.inline.inputmessagecontent.InputMessageContent
Represents the content of a text message to be sent as the result of an inline query.
-
message_text
¶ Text of the message to be sent, 1-4096 characters.
Type: str
-
parse_mode
¶ Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot’s message.
Type: str
-
disable_web_page_preview
¶ Optional. Disables link previews for links in the sent message.
Type: bool
Parameters: - message_text (
str
) – Text of the message to be sent, 1-4096 characters. Also found astelegram.constants.MAX_MESSAGE_LENGTH
. - parse_mode (
str
, optional) – Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot’s message. - disable_web_page_preview (
bool
, optional) – Disables link previews for links in the sent message. - **kwargs (
dict
) – Arbitrary keyword arguments.
-