From 84257b6ba9c45b7a7b1eac14c1c9bf6852d2d75e Mon Sep 17 00:00:00 2001 From: eternnoir Date: Sat, 23 Apr 2016 01:21:45 +0800 Subject: [PATCH] Fix typo. --- telebot/__init__.py | 4 ++-- telebot/apihelper.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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: