diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index f7c6a86..968e578 100644 --- a/davtelepot/__init__.py +++ b/davtelepot/__init__.py @@ -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" diff --git a/davtelepot/bot.py b/davtelepot/bot.py index 6e8e423..db5aec3 100644 --- a/davtelepot/bot.py +++ b/davtelepot/bot.py @@ -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