Eleirbag89 / TelegramBotPHP

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

How to make wait for answer #284

Closed Jobians closed 1 year ago

Jobians commented 1 year ago

Please how can I make wait for answer like

Bot -> What is your name (bot will wait for user message)

User -> I'm John

Bot -> Welcome

Full example of what I need https://github.com/eternnoir/pyTelegramBotAPI/blob/master/examples/step_example.py

russelomua commented 1 year ago

I think you need to see to more progressive bot engine as like https://github.com/botman/botman

Eleirbag89 commented 1 year ago

This library is basically a wrapper for the Telgram Bot Api in PHP. You can build your own logics or engines on top but it requires a bit of effort and it's outside the project scope.

You could hook up a database or something similar to save the state of the conversation or use some other framework ad suggested above ;)