mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add settings and privacy command handlers to builtin
This commit is contained in:
parent
a1521f354b
commit
f199afb07f
2 changed files with 14 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
from .builtin import Command, CommandHelp, CommandStart, ContentTypeFilter, ExceptionsFilter, Regexp, \
|
||||
RegexpCommandsFilter, StateFilter, Text
|
||||
from .builtin import Command, CommandHelp, CommandPrivacy, CommandSettings, CommandStart, ContentTypeFilter, \
|
||||
ExceptionsFilter, Regexp, RegexpCommandsFilter, StateFilter, Text
|
||||
from .factory import FiltersFactory
|
||||
from .filters import AbstractFilter, BoundFilter, Filter, FilterNotPassed, FilterRecord, check_filter, check_filters
|
||||
|
||||
|
|
@ -9,6 +9,8 @@ __all__ = [
|
|||
'Command',
|
||||
'CommandStart',
|
||||
'CommandHelp',
|
||||
'CommandPrivacy',
|
||||
'CommandSettings',
|
||||
'ContentTypeFilter',
|
||||
'ExceptionsFilter',
|
||||
'Filter',
|
||||
|
|
|
|||
|
|
@ -99,6 +99,16 @@ class CommandHelp(Command):
|
|||
super(CommandHelp, self).__init__(['help'])
|
||||
|
||||
|
||||
class CommandSettings(Command):
|
||||
def __init__(self):
|
||||
super(CommandSettings, self).__init__(['settings'])
|
||||
|
||||
|
||||
class CommandPrivacy(Command):
|
||||
def __init__(self):
|
||||
super(CommandPrivacy, self).__init__(['privacy'])
|
||||
|
||||
|
||||
class Text(Filter):
|
||||
"""
|
||||
Simple text filter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue