Skip to content

Commit 9ee341f

Browse files
committed
Add Chat test for telebot.
1 parent 0bd284a commit 9ee341f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎tests/test_telebot.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,13 @@ def test_send_location(self):
203203
assert int(ret_msg.location.longitude) == int(lon)
204204
assert int(ret_msg.location.latitude) == int(lat)
205205

206+
def test_Chat(self):
207+
tb = telebot.TeleBot(TOKEN)
208+
me = tb.get_me()
209+
msg = tb.send_message(CHAT_ID, 'Test')
210+
assert me.id == msg.from_user.id
211+
assert msg.chat.id == CHAT_ID
212+
206213
def create_text_message(self, text):
207214
params = {'text': text}
208215
chat = types.User(11, 'test')

0 commit comments

Comments
 (0)