mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Implement new middlewares
This commit is contained in:
parent
c262cc0ce6
commit
7f26ec9935
29 changed files with 532 additions and 1252 deletions
|
|
@ -11,7 +11,13 @@ class TestInlineQuery:
|
|||
offset="",
|
||||
)
|
||||
|
||||
kwargs = dict(results=[], cache_time=123, next_offset="123", switch_pm_text="foo", switch_pm_parameter="foo")
|
||||
kwargs = dict(
|
||||
results=[],
|
||||
cache_time=123,
|
||||
next_offset="123",
|
||||
switch_pm_text="foo",
|
||||
switch_pm_parameter="foo",
|
||||
)
|
||||
|
||||
api_method = inline_query.answer(**kwargs)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
from aiogram.api.methods import AnswerShippingQuery
|
||||
from aiogram.api.types import ShippingAddress, ShippingQuery, User, ShippingOption, LabeledPrice
|
||||
from aiogram.api.types import LabeledPrice, ShippingAddress, ShippingOption, ShippingQuery, User
|
||||
|
||||
|
||||
class TestInlineQuery:
|
||||
|
|
@ -19,7 +19,8 @@ class TestInlineQuery:
|
|||
)
|
||||
|
||||
shipping_options = [
|
||||
ShippingOption(id="id", title="foo", prices=[LabeledPrice(label="foo", amount=123)])]
|
||||
ShippingOption(id="id", title="foo", prices=[LabeledPrice(label="foo", amount=123)])
|
||||
]
|
||||
|
||||
kwargs = dict(ok=True, shipping_options=shipping_options, error_message="foo")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue