Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @flaky(3, 1)
- @pytest.mark.timeout(10)
- def test_restrict_chat_member(self, bot, channel_id, chat_permissions):
- # TODO: Add bot to supergroup so this can be tested properly
- with pytest.raises(BadRequest, match='Method is available only for supergroups'):
- assert bot.restrict_chat_member(channel_id,
- 95205500,
- chat_permissions,
- until_date=datetime.now())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement