mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 09:55:21 +00:00
TODO's
This commit is contained in:
parent
23dcf46a43
commit
f8b80d39be
2 changed files with 5 additions and 0 deletions
|
|
@ -5,6 +5,8 @@ from ..utils.helper import Helper, HelperMode, Item
|
||||||
|
|
||||||
|
|
||||||
async def check_filter(filter_, args, kwargs):
|
async def check_filter(filter_, args, kwargs):
|
||||||
|
# TODO: Refactor that shit.
|
||||||
|
|
||||||
if any((inspect.isasyncgen(filter_),
|
if any((inspect.isasyncgen(filter_),
|
||||||
inspect.iscoroutine(filter_),
|
inspect.iscoroutine(filter_),
|
||||||
inspect.isawaitable(filter_),
|
inspect.isawaitable(filter_),
|
||||||
|
|
@ -152,6 +154,8 @@ def generate_default_filters(dispatcher, *args, **kwargs):
|
||||||
|
|
||||||
|
|
||||||
class DefaultFilters(Helper):
|
class DefaultFilters(Helper):
|
||||||
|
# TODO: For what this shit is needed? Need to use it in `generate_default_filters`
|
||||||
|
|
||||||
mode = HelperMode.lower_case
|
mode = HelperMode.lower_case
|
||||||
|
|
||||||
COMMANDS = Item() # commands
|
COMMANDS = Item() # commands
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,7 @@ class Message(Deserializable):
|
||||||
invoice = Invoice.deserialize(raw_data.get('invoice'))
|
invoice = Invoice.deserialize(raw_data.get('invoice'))
|
||||||
successful_payment = SuccessfulPayment.deserialize(raw_data.get('successful_payment'))
|
successful_payment = SuccessfulPayment.deserialize(raw_data.get('successful_payment'))
|
||||||
|
|
||||||
|
# TODO: ContentType helper always return list. Don't forget that! (Fix it after merging fsm into dev branch)
|
||||||
if text:
|
if text:
|
||||||
content_type = ContentType.TEXT
|
content_type = ContentType.TEXT
|
||||||
elif audio:
|
elif audio:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue