Queer European MD passionate about IT
Browse Source

Remove `argument` parameter from parser decorator

Davte 3 years ago
parent
commit
b797f3fffe
2 changed files with 2 additions and 4 deletions
  1. 1 1
      davtelepot/__init__.py
  2. 1 3
      davtelepot/bot.py

+ 1 - 1
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"
 

+ 1 - 3
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