Example #1
0
def unsubscribe(update, context):
    user = get_or_create_user(db, update.effective_user,
                              update.message.chat.id)
    unsubscribe_user(db, user)
    update.message.reply_text('Уведомления о новом расписании отключены')
Example #2
0
def unsubscribe(update, context):
    user = get_or_create_user(db, update.effective_user, update.message.chat.id)
    unsubscribe_user(db, user)
    update.message.reply_text('Вы успешно отписались')
Example #3
0
def unsubscribe(update, context):
    user = get_or_create_user(db, update.effective_user,
                              update.message.chat.id)
    unsubscribe_user(db, user)
    update.message.reply_text('You have successfully unsubscribed')