Hide reply_markup from edited message if new message is sent with it
This commit is contained in:
parent
568694f3aa
commit
2e5ef62dff
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user