Remove argument parameter from parser decorator

This commit is contained in:
Davte 2020-08-23 14:07:51 +02:00
parent 3e19ba4c81
commit b797f3fffe
Signed by: Davte
GPG Key ID: 209AE674A0007425
2 changed files with 2 additions and 4 deletions

View File

@ -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"

View File

@ -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