diff --git a/telebot/__init__.py b/telebot/__init__.py index a93a8c7..ca86bb3 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -484,9 +484,9 @@ class TeleBot: return result return types.Message.de_json(result) - def edit_message_replay_markup(self, chat_id=None, message_id=None, inline_message_id=None, reply_markup=None): + def edit_message_reply_markup(self, chat_id=None, message_id=None, inline_message_id=None, reply_markup=None): return types.Message.de_json( - apihelper.edit_message_replay_markup(self.token, chat_id, message_id, inline_message_id, reply_markup) + apihelper.edit_message_reply_markup(self.token, chat_id, message_id, inline_message_id, reply_markup) ) def edit_message_caption(self, caption, chat_id=None, message_id=None, inline_message_id=None, reply_markup=None): diff --git a/telebot/apihelper.py b/telebot/apihelper.py index 6f56e22..6f2766e 100644 --- a/telebot/apihelper.py +++ b/telebot/apihelper.py @@ -361,7 +361,7 @@ def edit_message_caption(token, caption, chat_id=None, message_id=None, inline_m return _make_request(token, method_url, params=payload) -def edit_message_replay_markup(token, chat_id=None, message_id=None, inline_message_id=None, reply_markup=None): +def edit_message_reply_markup(token, chat_id=None, message_id=None, inline_message_id=None, reply_markup=None): method_url = r'editMessageReplyMarkup' payload = {} if chat_id: