diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index d894d06..211c9d8 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.1.6" +__version__ = "2.1.7" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/davtelepot/bot.py b/davtelepot/bot.py index 4cbe85c..0f0c9f4 100644 --- a/davtelepot/bot.py +++ b/davtelepot/bot.py @@ -988,7 +988,7 @@ class Bot(TelegramBot, ObjectWithDatabase): inline_message_id=inline_message_id, parse_mode=parse_mode, disable_web_page_preview=disable_web_page_preview, - reply_markup=reply_markup + reply_markup=(reply_markup if is_last else None) ) if chat_id is None: # Cannot send messages without a chat_id