Eleirbag89 / TelegramBotPHP

A very simple PHP Telegram Bot API for sending messages.
http://eleirbag89.github.io/TelegramBotPHP
MIT License
800 stars 340 forks source link

Force reply condition #234

Closed alexisml-12 closed 3 years ago

alexisml-12 commented 3 years ago

Hello, I need help with something.

How can I do a condition that if are a force reply pointed out do something and don't take it like any other request.

image

like a condition that verifies that the following message is in the forceReply.

Eleirbag89 commented 3 years ago

Idk if you van explicitly search for a forceReply, but you can search for the reply_to_message field in the getMessage() object

alexisml-12 commented 3 years ago

Idk if you van explicitly search for a forceReply, but you can search for the reply_to_message field in the getMessage() object

Oh yes, I already found the solution, but thank you so much anyway.