def cmd_clearlocation(bot, update):
chat_id = update.message.chat_id
pref = prefs.get(chat_id)
pref.set('location', [None, None, None])
bot.sendMessage(chat_id, text='Your location has been removed.')
logger.info('[%s] Location has been unset' % chat_id)
## Functions
评论列表
文章目录