alarm_bot.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:AlarmBot 作者: guysoft 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号