botman / driver-facebook

BotMan Facebook Messenger Driver
MIT License
71 stars 72 forks source link

Something went wrong: (#11) Setting of Nested Persistent Menu has been deprecated for v8.0 and higher #111

Closed ephp closed 3 years ago

ephp commented 3 years ago

Description:

This is my configuration file

'persistent_menu' => [
    [
        'locale' => 'it_IT',
        'composer_input_disabled' => 'false',
        'call_to_actions' => [
            [
                'title' => 'Itinerari',
                'type' => 'nested',
                'call_to_actions' => [
                    [
                        'title' => 'Aree tematiche',
                        'type' => 'postback',
                        'payload' => 'Aree tematiche',
                    ],
                    [
                        'title' => 'Ultimi itinerari visti',
                        'type' => 'postback',
                        'payload' => 'Itinerari',
                    ],
                ],
            ],
            [
                'title' => 'Aiuto',
                'type' => 'postback',
                'payload' => 'Aiuto',
            ],
            [
                'title' => 'Preferenze',
                'type' => 'postback',
                'payload' => 'Preferenze',
            ],
        ],
    ],
    [
        'locale' => 'default',
        'composer_input_disabled' => 'false',
        'call_to_actions' => [
            [
                'title' => 'Journeys',
                'type' => 'nested',
                'call_to_actions' => [
                    [
                        'title' => 'Thematic Area',
                        'type' => 'postback',
                        'payload' => 'Aree tematiche',
                    ],
                    [
                        'title' => 'Last Journeys',
                        'type' => 'postback',
                        'payload' => 'Itinerari',
                    ],
                ],
            ],
            [
                'title' => 'Help',
                'type' => 'postback',
                'payload' => 'Aiuto',
            ],
            [
                'title' => 'Preferences',
                'type' => 'postback',
                'payload' => 'Preferenze',
            ],
        ],
    ],
],

Steps To Reproduce:

ephp commented 3 years ago

Resolve changing my configuration

'persistent_menu' => [
    [
        'locale' => 'it_IT',
        'composer_input_disabled' => 'false',
        'call_to_actions' => [
            [
                'title' => 'Aree tematiche',
                'type' => 'postback',
                'payload' => 'Aree tematiche',
            ],
            [
                'title' => 'Ultimi itinerari visti',
                'type' => 'postback',
                'payload' => 'Itinerari',
            ],
            [
                'title' => 'Aiuto',
                'type' => 'postback',
                'payload' => 'Aiuto',
            ],
            [
                'title' => 'Preferenze',
                'type' => 'postback',
                'payload' => 'Preferenze',
            ],
        ],
    ],
    [
        'locale' => 'default',
        'composer_input_disabled' => 'false',
        'call_to_actions' => [
            [
                'title' => 'Thematic Area',
                'type' => 'postback',
                'payload' => 'Aree tematiche',
            ],
            [
                'title' => 'Last Journeys',
                'type' => 'postback',
                'payload' => 'Itinerari',
            ],
            [
                'title' => 'Help',
                'type' => 'postback',
                'payload' => 'Aiuto',
            ],
            [
                'title' => 'Preferences',
                'type' => 'postback',
                'payload' => 'Preferenze',
            ],
        ],
    ],
],