From 00bd5b24cd19bc7af1020005362063c37bd09977 Mon Sep 17 00:00:00 2001 From: Davte Date: Sat, 20 Jul 2019 13:57:02 +0200 Subject: [PATCH] Return instructions if /auth is called without arguments --- davtelepot/__init__.py | 2 +- davtelepot/authorization.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index c9120ad..d9692a0 100644 --- a/davtelepot/__init__.py +++ b/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" diff --git a/davtelepot/authorization.py b/davtelepot/authorization.py index b21c1a0..281f73d 100644 --- a/davtelepot/authorization.py +++ b/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 )