force reply
See original GitHub issueI’m tryng to use force_reply without success… any suggestion?
if (messaggio == '/love') {
var opts = {
ReplyKeyboardHide: {},
reply_to_message_id: msg.message_id,
reply_markup: JSON.stringify({
"keyboard": [["Ti amo alla follia"], ["Mi spiace ma non fai per me"]],
"one_time_keyboard": true,
"force_reply": true
})
};
bot.sendMessage(chatId, ‘Mi ami?’, opts); }
Issue Analytics
- State:
- Created 8 years ago
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Replyforce: B2B Data and Email Outreach Platform
Sales teams use Replyforce to find new prospects, automate personal email outreach and increase lead volumes.
Read more >Force Reply All instead of Reply - Microsoft Community
Hi,. I wonder if I can take away the "Reply" button and only leave the "Reply All" button, or at least move the...
Read more >[SOLVED] Force Reply All - MS Exchange
There's no way to force a reply all. A user can simply create a new email and forward it as an attachment. Forward...
Read more >Using force reply/creating step by step flows · Issue #11 - GitHub
I can't seem to get forceReply to work :/ bot.command('CommandName', (msg, reply) => { const { id } = msg.user; reply .keyboard([['Option1' ...
Read more >ForceReply — Pyrogram Documentation
Object used to force clients to show a reply interface. Upon receiving a message with this object, Telegram clients will display a reply...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

To be honest I haven’t tested
force_replyand if I did I can’t remember. According with Telegram docs sendMessage can receive an optionalreply_markupwith a JSON serializedReplyKeyboardMarkupORReplyKeyboardHideOR aForceReply.According with that,
ReplyKeyboardHideandForceReplydoesn’t have to be JSON serialized. So I would do something like:But that makes no sense if you want to send a
ReplyKeyboardMarkuptoo which is the common scenario so I would come with:But you said isn’t working so, no idea.
Regarding with
force_replyis working as expected:I added the
bot.onReplyToMessagefunction which makes much easier to handle responses. See an example here.