diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index 2841966..ee155bd 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.8" +__version__ = "2.0.9" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/davtelepot/bot.py b/davtelepot/bot.py index bd981f0..ad012be 100644 --- a/davtelepot/bot.py +++ b/davtelepot/bot.py @@ -541,6 +541,8 @@ class Bot(TelegramBot, ObjectWithDatabase): user_record=user_record ) break + if type(answer) is None: + answer = '' if type(answer) is str: answer = dict(text=answer) assert type(answer) is dict, "Invalid callback query answer."