How to use the vk-io.Keyboard.PRIMARY_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 / simple-keyboard-bot.js View on Github external
}
			})
			.row()
			.textButton({
				label: 'Cat photo',
				payload: {
					command: 'cat'
				},
				color: Keyboard.PRIMARY_COLOR
			})
			.textButton({
				label: 'Cat purring',
				payload: {
					command: 'purr'
				},
				color: Keyboard.PRIMARY_COLOR
			})
	});
});
github negezor / vk-io / docs / examples / simple-keyboard-bot.js View on Github external
}
			})
			.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
			})
	});
});
github negezor / vk-io / docs / examples / questionnaire / scenes / signup.js View on Github external
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
				]
			])
		});
	}
});