diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index ee155bd..db1bee3 100644 --- a/davtelepot/__init__.py +++ b/davtelepot/__init__.py @@ -7,7 +7,7 @@ __author__ = "Davide Testa" __email__ = "davide@davte.it" __credits__ = ["Marco Origlia", "Nick Lee @Nickoala"] __license__ = "GNU General Public License v3.0" -__version__ = "2.0.9" +__version__ = "2.0.10" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/davtelepot/bot.py b/davtelepot/bot.py index ad012be..8658b65 100644 --- a/davtelepot/bot.py +++ b/davtelepot/bot.py @@ -541,7 +541,7 @@ class Bot(TelegramBot, ObjectWithDatabase): user_record=user_record ) break - if type(answer) is None: + if answer is None: answer = '' if type(answer) is str: answer = dict(text=answer)