def name(client, message): newname = extract_args(message) if ' ' not in newname: firstname = newname lastname = '' else: namesplit = newname.split(' ', 1) firstname = namesplit[0] lastname = namesplit[1] client.send(account.UpdateProfile(first_name=firstname, last_name=lastname)) edit(message, f'`{NAME_OK}`')
def setbio(client, message): newbio = extract_args(message) client.send(account.UpdateProfile(about=newbio)) edit(message, BIO_SUCCESS)