def mesvaon(bot, update, section):
"""Defining the command to enable notification for mesva"""
if update.message.chat_id not in utils.USERS[section]:
utils.subscribe_user(update.message.chat_id, section)
bot.sendMessage(update.message.chat_id,
text='Notifiche Abilitate!',
reply_markup=telegram.ReplyKeyboardRemove())
else:
bot.sendMessage(update.message.chat_id,
text='Le notifiche sono già abilitate!',
reply_markup=telegram.ReplyKeyboardRemove())
return ConversationHandler.END
评论列表
文章目录