Home / Docs / Callbacks
On this page

Callbacks

Maneja respuestas de botones inline.

Registrar Callback

bot.onCallback('like', async (ctx) => {
    await ctx.reply('Te gusto!');
});

Crear Botones

const buttons = [
    [Zerogram.createButton('Like', 'like:123')],
    [Zerogram.urlButton('Web', 'https://...')]
];

await ctx.reply('Te gusta?', { buttons });