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))
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))
def __gdpr__(user_id): sql.rm_afk(user_id)