Search code examples
pythontelegrampython-telegram-bot

How to use ForceReply in python-telegram-bot wrapper


I've tried for quite a while, reading the python-telegram-bot wrapper APIpython-telegram-bot wrapper, telegram bot API, code snippets etc, but my lack of understanding(My programming knowledge is selective google copy-pastes) does not permit me to successfully implement the ForceReply option. (ForceReply

Basically what I'm trying is when a user types /sett the bot says "Enter No." and forces the user to reply to that message.

Sorry if I'm missing something obvious.


Solution

  • bot.send_message(chat_id, 'Enter No.', reply_markup=ForceReply())