Bot API 6.7 (#1168)

* Added 6.7 features

* Update after release

* Added tests

* Added changelog
This commit is contained in:
Alex Root Junior 2023-04-22 18:09:59 +03:00 committed by GitHub
parent aad2de4324
commit 1538bc2e2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 754 additions and 51 deletions

View file

@ -0,0 +1,11 @@
from aiogram.methods import GetMyName
from aiogram.types import BotDescription, BotName
from tests.mocked_bot import MockedBot
class TestGetMyName:
async def test_bot_method(self, bot: MockedBot):
prepare_result = bot.add_result_for(GetMyName, ok=True, result=BotName(name="Test"))
response: BotName = await bot.get_my_name()
assert response == prepare_result.result