bot.command('/start', async (ctx) => {
try {
await ctx.reply('Hello, world!', null, Markup
.keyboard([
Markup.button({
action: {
type: 'text',
label: 'test',
payload: ({
type: 'show_snackbar',
text: 'Test test test',
}),
},
color: 'default',
}),
]),
);
} catch (e) {
console.error(e);
}
});