Skip to content

Commit a7bfb0c

Browse files
bluehoodjh0ker
authored andcommitted
hide inline keyboard in conversationbot example (python-telegram-bot#439)
1 parent e76ee6b commit a7bfb0c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/conversationbot.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
bot.
1818
"""
1919

20-
from telegram import (ReplyKeyboardMarkup)
20+
from telegram import (ReplyKeyboardMarkup, ReplyKeyboardHide)
2121
from telegram.ext import (Updater, CommandHandler, MessageHandler, Filters, RegexHandler,
2222
ConversationHandler)
2323

@@ -48,7 +48,8 @@ def gender(bot, update):
4848
user = update.message.from_user
4949
logger.info("Gender of %s: %s" % (user.first_name, update.message.text))
5050
update.message.reply_text('I see! Please send me a photo of yourself, '
51-
'so I know what you look like, or send /skip if you don\'t want to.')
51+
'so I know what you look like, or send /skip if you don\'t want to.',
52+
reply_markup=ReplyKeyboardHide())
5253

5354
return PHOTO
5455

@@ -104,7 +105,8 @@ def bio(bot, update):
104105
def cancel(bot, update):
105106
user = update.message.from_user
106107
logger.info("User %s canceled the conversation." % user.first_name)
107-
update.message.reply_text('Bye! I hope we can talk again some day.')
108+
update.message.reply_text('Bye! I hope we can talk again some day.',
109+
reply_markup=ReplyKeyboardHide())
108110

109111
return ConversationHandler.END
110112

0 commit comments

Comments
 (0)