Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 908
iG0tB0lts Avatar asked Sep 06 '26 02:09

iG0tB0lts


1 Answers

bot.send_message(chat_id, 'Enter No.', reply_markup=ForceReply())
like image 77
Eldin Avatar answered Sep 07 '26 16:09

Eldin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!