def no_longer_afk(bot: Bot, update: Update): 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, tl(update.effective_message, "{} sudah tidak AFK!").format(update.effective_user.first_name))
def no_longer_afk(bot: Bot, update: Update): 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, tl(update.effective_message, "{} Ehh Dia Hidup Lagi Anjirr, Mati Lagi Ke Lu :v 😂🤧"). format(update.effective_user.first_name))