mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Fixed subtypes and union types generation, new enums added (#1213)
* Fixed subtypes and union types generation, new enums added * Added changes description
This commit is contained in:
parent
a7b92bb050
commit
31c11c31e0
115 changed files with 680 additions and 359 deletions
|
|
@ -1,5 +1,5 @@
|
|||
from aiogram.methods import AnswerWebAppQuery, Request
|
||||
from aiogram.types import InlineQueryResult, SentWebAppMessage
|
||||
from aiogram.methods import AnswerWebAppQuery
|
||||
from aiogram.types import InlineQueryResultPhoto, SentWebAppMessage
|
||||
from tests.mocked_bot import MockedBot
|
||||
|
||||
|
||||
|
|
@ -9,7 +9,11 @@ class TestAnswerWebAppQuery:
|
|||
|
||||
response: SentWebAppMessage = await bot.answer_web_app_query(
|
||||
web_app_query_id="test",
|
||||
result=InlineQueryResult(),
|
||||
result=InlineQueryResultPhoto(
|
||||
id="test",
|
||||
photo_url="test",
|
||||
thumbnail_url="test",
|
||||
),
|
||||
)
|
||||
request = bot.get_request()
|
||||
assert response == prepare_result.result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue