def disimoff(bot, update):
"""Defining the command to disable notification for disim"""
if update.message.chat_id in utils.USERS['disim']:
utils.unsubscribe_user(update.message.chat_id, 'disim')
bot.sendMessage(update.message.chat_id,
text='Notifiche Disattivate!',
reply_markup=telegram.ReplyKeyboardRemove())
else:
bot.sendMessage(update.message.chat_id,
text='Per disattivare le notifiche dovresti prima attivarle.',
reply_markup=telegram.ReplyKeyboardRemove())
return ConversationHandler.END
评论列表
文章目录