question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello, I read all the docs and searched through the source code until I found the ForceReply under the Markup module, but I just can’t understand how to use it 😛

I read everything I could on the official Telegram API documentation as well.

Upon receiving a message with this object, Telegram clients will display a reply interface to the user

But I still don’t understand how to achieve this. I’m currently getting a /command from inside a group chat and I need to send back a message (a question) so the user might answer directly from inside the reply/quote thing.

I tried several approaches using .reply shortcut and telegram’s sendMessage with the settings/extra object (with reply_markup and force_reply) and got nowhere.

Thanks 😦

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
dotcypresscommented, Apr 3, 2017

Hey @gugiserman

bot.command('test', ctx.reply('Hey', Extra.markup(Markup.forceReply())))

or

bot.command('test', ctx.reply('Hey', Markup.forceReply().extra()))

You can find example usage here

2reactions
gugisermancommented, Apr 3, 2017

@dotcypress Awesome! It worked. Thanks, man.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Telegram API -- how do I use ForceReply?
I would like to have a little Telegram bot in python where a command is issued by the user, the bot asks a...
Read more >
telegram.ForceReply — python-telegram-bot 13.15 ...
Use this parameter if you want to force reply from specific users only. Targets: Users that are @mentioned in the text of the...
Read more >
ForceReply: Display a reply in telegram.bot - Rdrr.io
Display a reply. Description. Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as ......
Read more >
ForceReply function - RDocumentation
Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'. Defaults to TRUE . selective. (Optional)....
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found