Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
telegram.updates.hear('/inline', (context) => {
return context.send('There\'s your keyboard!', {
reply_markup: InlineKeyboard.keyboard([
[
InlineKeyboard.textButton({
text: 'Inline button!',
}),
],
[
InlineKeyboard.textButton({
text: 'And there\'s more!',
}),
InlineKeyboard.textButton({
text: 'Payload button',
payload: { payload: true },
}),
],