Bot API 6.8 (#1276)

* Prepare for Bot API 6.8

* Bump after public release

* Bump version, added changelog
This commit is contained in:
Alex Root Junior 2023-08-18 20:18:05 +03:00 committed by GitHub
parent bc0932a745
commit 678b3cfe7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 363 additions and 27 deletions

View file

@ -0,0 +1,15 @@
from aiogram.methods import Request, UnpinAllForumTopicMessages, UnpinAllGeneralForumTopicMessages
from tests.mocked_bot import MockedBot
class TestUnpinAllForumTopicMessages:
async def test_bot_method(self, bot: MockedBot):
prepare_result = bot.add_result_for(
UnpinAllGeneralForumTopicMessages, ok=True, result=True
)
response: bool = await bot.unpin_all_general_forum_topic_messages(
chat_id=42,
)
request = bot.get_request()
assert response == prepare_result.result