def afk(update, context): args = update.effective_message.text.split(None, 1) if len(args) >= 2: reason = args[1] else: reason = "" sql.set_afk(update.effective_user.id, reason) send_message(update.effective_message, "Cya 👋 {}!".format(update.effective_user.first_name))
def afk(update, context): args = update.effective_message.text.split(None, 1) if len(args) >= 2: reason = args[1] else: reason = "" sql.set_afk(update.effective_user.id, reason) afkstr = random.choice(fun.AFK) update.effective_message.reply_text( afkstr.format(update.effective_user.first_name))