src/Interfaces/Settings.php
/**
     * Changes Bot Username
     *
     * @var string|int $new_name New bot username
     */
Changes Bot Username
@var string|int $new_name New bot username
Changes Bot Username @var string|int $new_name New bot username
public function change_bot_username($new_name)
    {
        $this->bot->api->send(
            "users/@me",
            "{\"username\":\"{$new_name}\"}", "PATCH");
    }
public function change_bot_username ( $ new_name ) { $ this -> bot -> api -> send ( " users/@me " , " { \" username \" : \" { $ new_name } \" } " , " PATCH " ) ; }
Changes Bot Username
 @var string|int $new_name New bot username
Changes Bot Username @var string|int $new_name New bot username