diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index 2cf0169..4c712d4 100644 --- a/davtelepot/__init__.py +++ b/davtelepot/__init__.py @@ -7,7 +7,7 @@ __author__ = "Davide Testa" __email__ = "davte@libero.it" __credits__ = "Marco Origlia" __license__ = "GNU General Public License v3.0" -__version__ = "1.4.1" +__version__ = "1.4.2" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/davtelepot/custombot.py b/davtelepot/custombot.py index eb244f0..8c5861b 100644 --- a/davtelepot/custombot.py +++ b/davtelepot/custombot.py @@ -1892,6 +1892,8 @@ class Bot(telepot.aio.Bot, Gettable): "Choose an addressee." "\n\t\t" ) + if len(user_input) == 0: + return 65 # Let user select a different bot except KeyboardInterrupt: logging.error("Keyboard interrupt.") return 0 # Stop running