TelegramBot / Api

Native PHP Wrapper for Telegram BOT API
MIT License
1.07k stars 324 forks source link

How to retrieve certain parameter in command? #298

Closed eizil closed 3 years ago

eizil commented 3 years ago

Hi,

I want to use command with additional paramater.

for example /ping abc

how can I retrieve the abc using your script?

Thanks

MyZik commented 3 years ago

You should catch the user request from message with getText() method.

MyZik commented 3 years ago

Here is an example:

https://github.com/TelegramBot/Api/issues/278#issuecomment-684263179

eizil commented 3 years ago

Here is an example:

#278 (comment)

thank you very much