Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
})
.row()
.textButton({
label: 'Cat photo',
payload: {
command: 'cat'
},
color: Keyboard.PRIMARY_COLOR
})
.textButton({
label: 'Cat purring',
payload: {
command: 'purr'
},
color: Keyboard.PRIMARY_COLOR
})
});
});}
})
.row()
.textButton({
label: 'The current date',
payload: {
command: 'time'
}
})
.row()
.textButton({
label: 'Cat photo',
payload: {
command: 'cat'
},
color: Keyboard.PRIMARY_COLOR
})
.textButton({
label: 'Cat purring',
payload: {
command: 'purr'
},
color: Keyboard.PRIMARY_COLOR
})
});
});if (canceled) {
await context.send('Registration canceled', {
keyboard: Keyboard.keyboard([helpButton])
});
return;
}
context.session.user = context.wizard.state;
await context.send('Register completed! Write /profile', {
keyboard: Keyboard.keyboard([
[
Keyboard.textButton({
label: 'Profile',
color: Keyboard.PRIMARY_COLOR,
payload: {
command: 'profile'
}
}),
helpButton
]
])
});
}
});