Eleirbag89 / TelegramBotPHP

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

Add new method | Prerequisite to Write Poll bot #140

Closed emobin closed 3 years ago

emobin commented 6 years ago

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.

stale[bot] commented 3 years ago

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.