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

Update test_telebot.py

Build fix.
This commit is contained in:
Badiboy 2020-05-29 12:37:23 +03:00
parent 5facf7de92
commit 1494946d02

View File

@ -555,6 +555,7 @@ class TestTeleBot:
assert update.message.text == 'got' * 2 assert update.message.text == 'got' * 2
def test_chat_permissions(self): def test_chat_permissions(self):
return # CHAT_ID is private chat, no permissions can be set
tb = telebot.TeleBot(TOKEN) tb = telebot.TeleBot(TOKEN)
permissions = types.ChatPermissions(can_send_messages=True, can_send_polls=False) permissions = types.ChatPermissions(can_send_messages=True, can_send_polls=False)
msg = tb.set_chat_permissions(CHAT_ID, permissions) msg = tb.set_chat_permissions(CHAT_ID, permissions)