Yoctol/bottender

Dissapearing presistent menu

psztefko opened this issue · 0 comments

I've got a problem that is shown on video below. Persistent menu shows up after pressing get started button but as soon as "get started" message is sent it dissappears. Do you have any idea what might be causing that?

DriveBot.persistent.menu.mp4

Here's my profile code which I'm refering to in module.exports/channels in my config js file
(Sorry for how it looks but I have no idea why it is displayed without indentation)

`
const profile = {

getStarted: {
payload: 'GET_STARTED'
},
greeting: [
{
locale: 'default',
text: 'Cześć {{user_first_name}}! W czym mogę pomóc?',
},
],
persistentMenu: [
{
locale: 'default',
composerInputDisabled: false,
callToActions: [
{
type: 'postback',
title: 'Sprawdz przejazdy',
payload: 'SHOW_RIDES',
},
{
type: 'postback',
title: 'Pokaz rezerwacje',
payload: 'SHOW_RESERVATION',
},
{
type: 'postback',
title: 'Anuluj rezerwacje',
payload: 'CANCEL_RESERVATION',
},
],
},
],
}
`