Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question