Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command + parameter #51

Closed
Shoteexke opened this issue Dec 11, 2021 · 1 comment
Closed

Command + parameter #51

Shoteexke opened this issue Dec 11, 2021 · 1 comment

Comments

@Shoteexke
Copy link

Another question, I'm creating a bot of tools that help people know information from a ZIPCODE

$bot->onCommand('zip', function (Context $ctx) {

however, the command (/zip) only works if the person types only /zip, but when someone tries to type the command informing the zipcode (ex: /zip 10080) the bot does not respond.

@awohsen
Copy link
Contributor

awohsen commented Dec 11, 2021

Hey it's on wiki!

$bot->onText('zip {code}', function (Context $ctx, $code) {
    echo $code;
});

@cheeghi cheeghi closed this as completed Dec 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants