Queer European MD passionate about IT
Browse Source

Return instructions if /auth is called without arguments

Davte 5 years ago
parent
commit
00bd5b24cd
2 changed files with 2 additions and 2 deletions
  1. 1 1
      davtelepot/__init__.py
  2. 1 1
      davtelepot/authorization.py

+ 1 - 1
davtelepot/__init__.py

@@ -14,7 +14,7 @@ __author__ = "Davide Testa"
 __email__ = "davide@davte.it"
 __credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
 __license__ = "GNU General Public License v3.0"
-__version__ = "2.1.20"
+__version__ = "2.1.21"
 __maintainer__ = "Davide Testa"
 __contact__ = "t.me/davte"
 

+ 1 - 1
davtelepot/authorization.py

@@ -320,7 +320,7 @@ async def _authorization_command(bot, update, user_record):
     )
     if not text:
         if 'reply_to_message' not in update:
-            result = bot.get_message(
+            return bot.get_message(
                 'authorization', 'auth_command', 'instructions',
                 update=update, user_record=user_record
             )