1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Added ability to set default parse_mode for explanation_parse_mode in send_poll

This commit is contained in:
coder2020official 2022-05-21 17:10:29 +05:00
parent 28662876a2
commit 33375ac135

View File

@ -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,