Remove argument
parameter from parser decorator
This commit is contained in:
parent
3e19ba4c81
commit
b797f3fffe
@ -11,7 +11,7 @@ __author__ = "Davide Testa"
|
||||
__email__ = "davide@davte.it"
|
||||
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
|
||||
__license__ = "GNU General Public License v3.0"
|
||||
__version__ = "2.6.13"
|
||||
__version__ = "2.6.14"
|
||||
__maintainer__ = "Davide Testa"
|
||||
__contact__ = "t.me/davte"
|
||||
|
||||
|
@ -2423,8 +2423,7 @@ class Bot(TelegramBot, ObjectWithDatabase, MultiLanguageObject):
|
||||
'reply_keyboard_button'] = _reply_keyboard_button
|
||||
return command_decorator
|
||||
|
||||
def parser(self, condition, description='', authorization_level='admin',
|
||||
argument='text'):
|
||||
def parser(self, condition, description='', authorization_level='admin'):
|
||||
"""Define a text message parser.
|
||||
|
||||
Decorate command handlers like this:
|
||||
@ -2475,7 +2474,6 @@ class Bot(TelegramBot, ObjectWithDatabase, MultiLanguageObject):
|
||||
handler=decorated_parser,
|
||||
description=description,
|
||||
authorization_level=authorization_level,
|
||||
argument=argument
|
||||
)
|
||||
return parser_decorator
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user