From 33375ac135c41d1e1cd03df2ec84e55155f2a569 Mon Sep 17 00:00:00 2001 From: coder2020official Date: Sat, 21 May 2022 17:10:29 +0500 Subject: [PATCH] Added ability to set default parse_mode for explanation_parse_mode in send_poll --- telebot/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telebot/__init__.py b/telebot/__init__.py index 09b3002..abadfe5 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -2510,6 +2510,8 @@ class TeleBot: if isinstance(question, types.Poll): raise RuntimeError("The send_poll signature was changed, please see send_poll function details.") + explanation_parse_mode = self.parse_mode if (explanation_parse_mode is None) else explanation_parse_mode + return types.Message.de_json( apihelper.send_poll( self.token, chat_id,