diff --git a/telebot/__init__.py b/telebot/__init__.py index 88d6fc7..35cad2b 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -2047,7 +2047,7 @@ class TeleBot: open_period: Optional[int]=None, close_date: Optional[Union[int, datetime]]=None, is_closed: Optional[bool]=None, - disable_notifications: Optional[bool]=False, + disable_notification: Optional[bool]=False, reply_to_message_id: Optional[int]=None, reply_markup: Optional[REPLY_MARKUP_TYPES]=None, allow_sending_without_reply: Optional[bool]=None, @@ -2067,7 +2067,7 @@ class TeleBot: :param open_period: :param close_date: :param is_closed: - :param disable_notifications: + :param disable_notification: :param reply_to_message_id: :param allow_sending_without_reply: :param reply_markup: @@ -2085,7 +2085,7 @@ class TeleBot: question, options, is_anonymous, type, allows_multiple_answers, correct_option_id, explanation, explanation_parse_mode, open_period, close_date, is_closed, - disable_notifications, reply_to_message_id, allow_sending_without_reply, + disable_notification, reply_to_message_id, allow_sending_without_reply, reply_markup, timeout, explanation_entities)) def stop_poll( diff --git a/telebot/apihelper.py b/telebot/apihelper.py index a3ef5c2..4b19f24 100644 --- a/telebot/apihelper.py +++ b/telebot/apihelper.py @@ -1485,7 +1485,7 @@ def send_poll( question, options, is_anonymous = None, type = None, allows_multiple_answers = None, correct_option_id = None, explanation = None, explanation_parse_mode=None, open_period = None, close_date = None, is_closed = None, - disable_notifications=False, reply_to_message_id=None, allow_sending_without_reply=None, + disable_notification=False, reply_to_message_id=None, allow_sending_without_reply=None, reply_markup=None, timeout=None, explanation_entities=None): method_url = r'sendPoll' payload = { @@ -1515,8 +1515,8 @@ def send_poll( if is_closed is not None: payload['is_closed'] = is_closed - if disable_notifications: - payload['disable_notification'] = disable_notifications + if disable_notification: + payload['disable_notification'] = disable_notification if reply_to_message_id is not None: payload['reply_to_message_id'] = reply_to_message_id if allow_sending_without_reply is not None: