def cmd_tripcode(ev, arg): c_user = UserContainer(ev.from_user) if arg == "": send_answer(ev, core.get_tripcode(c_user)) else: send_answer(ev, core.set_tripcode(c_user, arg))
def cmd_settripcode(ev, arg): c_user = UserContainer(ev.from_user) return send_answer(ev, core.set_tripcode(c_user, arg), True)