mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Add send video note test case.
This commit is contained in:
parent
43a30e7777
commit
9134e8dd1a
@ -403,3 +403,9 @@ class TestTeleBot:
|
|||||||
def test_not_string(self):
|
def test_not_string(self):
|
||||||
i1 = 10
|
i1 = 10
|
||||||
assert not util.is_string(i1)
|
assert not util.is_string(i1)
|
||||||
|
|
||||||
|
def test_send_video_note(self):
|
||||||
|
file_data = open('./test_data/test_video.mp4', 'rb')
|
||||||
|
tb = telebot.TeleBot(TOKEN)
|
||||||
|
ret_msg = tb.send_video_note(CHAT_ID, file_data)
|
||||||
|
assert ret_msg.message_id
|
||||||
|
Loading…
Reference in New Issue
Block a user