예제 #1
0
def no_longer_afk(update, context):
    user = update.effective_user  # type: Optional[User]

    if not user:  # ignore channels
        return

    res = sql.rm_afk(user.id)
    if res:
        send_message(update.effective_message, "Welcome back {}!".format(update.effective_user.first_name))
예제 #2
0
def no_longer_afk(update, context):
    user = update.effective_user  # type: Optional[User]

    if not user:  # ignore channels
        return

    res = sql.rm_afk(user.id)
    if res:
        noafkstr = random.choice(fun.NOAFK)
        update.effective_message.reply_text(noafkstr.format(user.first_name))
예제 #3
0
def __gdpr__(user_id):
    sql.rm_afk(user_id)