Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bot.command('start', ctx => {
- let startMessage = `start message`;
- bot.telegram.sendMessage(ctx.chat.id, startMessage,
- {
- reply_markup: {
- inline_keyboard: [
- [
- { text: "botão", callback_data: 'clique' }
- ]
- ]
- },
- parse_mode: "markdown"
- }
- )
- })
- bot.action('clique', ctx => {
- let editedMessage = `edited message`;
- ctx.telegram.editMessageText(ctx.chat.id, ctx.message.message_id, undefined, editedMessage,
- {
- reply_markup: {
- inline_keyboard: [
- [
- { text: "⬅️ Voltar", callback_data: 'start' }
- ]
- ]
- },
- parse_mode: "markdown"
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement