How to use the vk-io.Keyboard.NEGATIVE_COLOR function in vk-io

To help you get started, we’ve selected a few vk-io examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github negezor / vk-io / docs / examples / questionnaire / scenes / signup.js View on Github external
const { Keyboard } = require('vk-io');

const { StepScene } = require('../middlewares/wizard');

const cancelButton = Keyboard.textButton({
	label: 'Cancel',
	color: Keyboard.NEGATIVE_COLOR,
	payload: {
		command: 'cancel'
	}
});

const helpButton = Keyboard.textButton({
	label: 'Help',
	payload: {
		command: 'help'
	}
});

const allowGenders = ['male', 'female'];

module.exports = new StepScene('signup', {
	steps: [