Esempio n. 1
0
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))
Esempio n. 2
0
def cmd_settripcode(ev, arg):
    c_user = UserContainer(ev.from_user)
    return send_answer(ev, core.set_tripcode(c_user, arg), True)