From b797f3fffe2cf956a0936bf2e41a8178e370c062 Mon Sep 17 00:00:00 2001 From: Davte Date: Sun, 23 Aug 2020 14:07:51 +0200 Subject: [PATCH] Remove `argument` parameter from parser decorator --- davtelepot/__init__.py | 2 +- davtelepot/bot.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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