Queer European MD passionate about IT
Browse Source

Hide reply_markup from edited message if new message is sent with it

Davte 5 năm trước cách đây
mục cha
commit
2e5ef62dff
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      davtelepot/__init__.py
  2. 1 1
      davtelepot/bot.py

+ 1 - 1
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"
 

+ 1 - 1
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