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('/inlinebuilder', (context) => {
return context.send('There\'s your keyboard!', {
reply_markup: new InlineKeyboardBuilder()
.textButton({ text: 'Inline button!' })
.row()
.textButton({ text: 'And there\'s more!' })
.textButton({
text: 'Payload button',
payload: { payload: true },
})
.row()
.textButton({ text: 'This' })
.textButton({ text: 'is' })
.textButton({ text: 'epic!' }),
});
});