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

Fix edit message error.

This commit is contained in:
eternnoir
2016-04-14 15:06:46 +08:00
parent 13327c371a
commit f873658aac
3 changed files with 9 additions and 6 deletions

View File

@ -328,7 +328,7 @@ class TestTeleBot:
def test_edit_message_text(self):
tb = telebot.TeleBot(TOKEN)
msg = tb.send_message(CHAT_ID, 'Test')
new_msg = tb.edit_message_text(CHAT_ID, 'Edit test', message_id=msg.message_id)
new_msg = tb.edit_message_text('Edit test', chat_id=CHAT_ID, message_id=msg.message_id)
assert new_msg.text == 'Edit test'
def create_text_message(self, text):