S
S
Sergey Stadnik2020-05-19 14:59:24
API
Sergey Stadnik, 2020-05-19 14:59:24

How to make a button in telegram send text when clicked?

I use node-telegram-bot-api

There are buttons in the telegram bot, I need them to send the text that is written on them when pressed

var btn1 = {
reply_markup: JSON.stringify({
inline_keyboard: [
[{ text: 'Help', callback_data: '1' }]
]
})
};

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BasiC2k, 2020-05-19
@nuriboy

You need to use ReplyKeyboardMarkup instead of InlineKeyboardMarkup

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question