From 2e5ef62dff5e8ac62738d2f188eb9ce1e6c679d5 Mon Sep 17 00:00:00 2001 From: Davte Date: Thu, 18 Jul 2019 00:00:55 +0200 Subject: [PATCH] Hide reply_markup from edited message if new message is sent with it --- davtelepot/__init__.py | 2 +- davtelepot/bot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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