telegram.ext.Defaults¶
-
class
telegram.ext.Defaults(parse_mode=None, disable_notification=None, disable_web_page_preview=None, timeout=<telegram.utils.helpers.DefaultValue object>, quote=None)¶ Bases:
objectConvenience Class to gather all parameters with a (user defined) default value
-
parse_mode¶ Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width toxt or URLs in your bot’s message.
Type: str
-
disable_notification¶ Optional. Sends the message silently. Users will receive a notification with no sound.
Type: bool
-
disable_web_page_preview¶ Optional. Disables link previews for links in this message.
Type: bool
-
timeout¶ Optional. If this value is specified, use it as the read timeout from the server (instead of the one specified during creation of the connection pool).
Type: int|float
-
quote¶ Optional. If set to
True, the reply is sent as an actual reply to the message. Ifreply_to_message_idis passed inkwargs, this parameter will be ignored. Default:Truein group chats andFalsein private chats.Type: bool
Parameters: - parse_mode (
str, optional) – Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width toxt or URLs in your bot’s message. - disable_notification (
bool, optional) – Sends the message silently. Users will receive a notification with no sound. - disable_web_page_preview (
bool, optional) – Disables link previews for links in this message. - timeout (
int|float, optional) – If this value is specified, use it as the read timeout from the server (instead of the one specified during creation of the connection pool). - quote (
bool, opitonal) – If set toTrue, the reply is sent as an actual reply to the message. Ifreply_to_message_idis passed inkwargs, this parameter will be ignored. Default:Truein group chats andFalsein private chats.
-