mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
Fix filter docs
The comments were in the wrong place
This commit is contained in:
parent
2aa01b3c6f
commit
8db663c218
1 changed files with 5 additions and 5 deletions
|
|
@ -202,14 +202,14 @@ class BoundFilter(Filter):
|
||||||
You need to implement ``__init__`` method with single argument related with key attribute
|
You need to implement ``__init__`` method with single argument related with key attribute
|
||||||
and ``check`` method where you need to implement filter logic.
|
and ``check`` method where you need to implement filter logic.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""Unique name of the filter argument. You need to override this attribute."""
|
|
||||||
key = None
|
key = None
|
||||||
"""If :obj:`True` this filter will be added to the all of the registered handlers"""
|
"""Unique name of the filter argument. You need to override this attribute."""
|
||||||
required = False
|
required = False
|
||||||
"""Default value for configure required filters"""
|
"""If :obj:`True` this filter will be added to the all of the registered handlers"""
|
||||||
default = None
|
default = None
|
||||||
|
"""Default value for configure required filters"""
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def validate(cls, full_config: typing.Dict[str, typing.Any]) -> typing.Dict[str, typing.Any]:
|
def validate(cls, full_config: typing.Dict[str, typing.Any]) -> typing.Dict[str, typing.Any]:
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue