Skip to content

Commit 33434ac

Browse files
committed
TASK: Simplify hide_cmd
1 parent 7c043fb commit 33434ac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,7 @@ def cancel_cmd(bot, update):
340340

341341
def hide_cmd(bot, update):
342342
"""Hides the keyboard in the specified chat."""
343-
chat_id = update.message.chat_id
344-
reply_markup = ReplyKeyboardRemove()
345-
bot.sendMessage(chat_id=chat_id, text="\U0001F44D", reply_markup=reply_markup)
343+
update.message.reply_text("\U0001F44D", reply_markup=ReplyKeyboardRemove())
346344

347345

348346
def mentions_cmd(bot, update):

0 commit comments

Comments
 (0)