mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-17 04:39:55 +01:00
parent
818475bd93
commit
d8dcdeea75
1 changed files with 2 additions and 0 deletions
|
@ -663,6 +663,8 @@ class TestBot(object):
|
|||
assert bot.set_chat_description(channel_id, 'Time: ' + str(time.time()))
|
||||
|
||||
# TODO: Add bot to group to test there too
|
||||
@flaky(3, 1)
|
||||
@pytest.mark.timeout(10)
|
||||
def test_pin_and_unpin_message(self, bot, super_group_id):
|
||||
message = bot.send_message(super_group_id, text="test_pin_message")
|
||||
assert bot.pin_chat_message(chat_id=super_group_id, message_id=message.message_id,
|
||||
|
|
Loading…
Add table
Reference in a new issue