\return the String reply_to_message text.
*/
public function ReplyToMessageText()
{
return $this->data['message']['reply_to_message']['text'];
}`
it is useful when you use from "forcereply " and need to do an action when you receive your reply. As an example ::
if ($telegram->ReplyToMessageText() == "your predefined text") { // do any thing on $result = $telegram->Text(); }
finally, do you think is there any better way to do something like this? for example for making a poll bot, ask a qustion and answer from user and store it at server side.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I've added this new method to your class : ` /**
it is useful when you use from "forcereply " and need to do an action when you receive your reply. As an example ::
if ($telegram->ReplyToMessageText() == "your predefined text") { // do any thing on $result = $telegram->Text(); }
finally, do you think is there any better way to do something like this? for example for making a poll bot, ask a qustion and answer from user and store it at server side.