public function toData()
    {
        if ($this->type === Bot::TYPE_DELETE) {
            return [
                'fields' => [
                    'persistent_menu',
                ],
            ];
        }

        if ($this->type === Bot::TYPE_GET) {
            return [
                'fields' => 'persistent_menu',
            ];
        }

        return [
            'persistent_menu' => $this->menus,
        ];
    }