How to use the vk-io.Keyboard.builder 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 / simple-keyboard-bot.js View on Github external
hearCommand('help', async (context) => {
	await context.send({
		message: `
			My commands list

			/help - The help
			/time - The current date
			/cat - Cat photo
			/purr - Cat purring
		`,
		keyboard: Keyboard.builder()
			.textButton({
				label: 'The help',
				payload: {
					command: 'help'
				}
			})
			.row()
			.textButton({
				label: 'The current date',
				payload: {
					command: 'time'
				}
			})
			.row()
			.textButton({
				label: 'Cat photo',