Answer the question
In order to leave comments, you need to log in
How to hide the keyboard immediately after a person has sent a message?
#КЛАВИАТУРА
markup = types.ReplyKeyboardMarkup(resize_keyboard=True)
item = types.KeyboardButton("\N{world map}")
one_time_keyboard = TRUE
markup.add(item)
bot.send_message(message.chat.id, "чух-чух".format(message.from_user,bot.get_me()),
parse_mode='html', reply_markup=markup)
Answer the question
In order to leave comments, you need to log in
In markup add:
It will be like this:one_time_keyboard=True
markup = types.ReplyKeyboardMarkup(resize_keyboard=True, one_time_keyboard=True)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question