mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Bot API 6.8 (#1276)
* Prepare for Bot API 6.8 * Bump after public release * Bump version, added changelog
This commit is contained in:
parent
bc0932a745
commit
678b3cfe7d
29 changed files with 363 additions and 27 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue