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

Fix test case.

This commit is contained in:
eternnoir 2016-04-23 09:29:48 +08:00
parent bbe53b5e17
commit 0a856f4e83

View File

@ -340,7 +340,7 @@ class TestTeleBot:
ret_msg = tb.send_message(CHAT_ID, text, disable_notification=True, reply_markup=markup) ret_msg = tb.send_message(CHAT_ID, text, disable_notification=True, reply_markup=markup)
markup.add(types.InlineKeyboardButton("Google2", url="http://www.google.com")) markup.add(types.InlineKeyboardButton("Google2", url="http://www.google.com"))
markup.add(types.InlineKeyboardButton("Yahoo2", url="http://www.yahoo.com")) markup.add(types.InlineKeyboardButton("Yahoo2", url="http://www.yahoo.com"))
new_msg = tb.edit_message_replay_markup(chat_id=CHAT_ID, message_id=ret_msg.message_id, reply_markup=markup) new_msg = tb.edit_message_reply_markup(chat_id=CHAT_ID, message_id=ret_msg.message_id, reply_markup=markup)
assert new_msg.message_id assert new_msg.message_id
def create_text_message(self, text): def create_text_message(self, text):