FbBotApp.php
public function setPersistentMenu($localizedMenu)
    {
        $elements = [];

        foreach ($localizedMenu as $menu) {
            $elements[] = $menu->getData();
        }

        return $this->call('me/messenger_profile', [
            'persistent_menu' => $elements
        ], self::TYPE_POST);
    }
public function setPersistentMenu($localizedMenu)
    {
        $elements = [];

        foreach ($localizedMenu as $menu) {
            $elements[] = $menu->getData();
        }

        return $this->call('me/messenger_profile', [
            'persistent_menu' => $elements
        ], self::TYPE_POST);
    }
public function setPersistentMenu ( $ localizedMenu ) { $ elements = [ ] ; foreach ( $ localizedMenu as $ menu ) { $ elements [ ] = $ menu -> getData ( ) ; } return $ this -> call ( 'me/messenger_profile' , [ 'persistent_menu' => $ elements ] , self :: TYPE_POST ) ; }
Set Nested Menu

@see https://developers.facebook.com/docs/messenger-platform/messenger-profile/persistent-menu
@params $localizedMenu
@return array
Set Nested Menu