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

added Dice and send_dice

This commit is contained in:
dr_forse
2020-04-15 06:10:05 +01:00
parent dd726b0759
commit 51b1fb7695
5 changed files with 67 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ import telebot
from telebot import types
from telebot import util
should_skip = 'TOKEN' and 'CHAT_ID' not in os.environ
should_skip = False
if not should_skip:
TOKEN = os.environ['TOKEN']
@@ -241,6 +241,12 @@ class TestTeleBot:
ret_msg = tb.send_message(CHAT_ID, text)
assert ret_msg.message_id
def test_send_dice(self):
tb = telebot.TeleBot(TOKEN)
ret_msg = tb.send_dice(CHAT_ID)
assert ret_msg.message_id
assert ret_msg.content_type == 'dice'
def test_send_message_dis_noti(self):
text = 'CI Test Message'
tb = telebot.TeleBot(TOKEN)