def timezone_continent(self, bot, update):
reply = handle_cancel(update)
if reply is None:
keyboard = []
self.selected_continent = update.message.text
for continent in sorted(get_timezones()[self.selected_continent]):
keyboard.append([InlineKeyboardButton(continent)])
reply_markup = ReplyKeyboardMarkup(keyboard, one_time_keyboard=True)
update.message.reply_text('Please select a timezone, or /cancel to cancel:', reply_markup=reply_markup)
return self.TIMEZONE_TIME
return ConversationHandler.END
评论列表
文章目录