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

Interception of incomplete commands #38

Open
Sheridan opened this issue Jul 14, 2017 · 2 comments
Open

Interception of incomplete commands #38

Sheridan opened this issue Jul 14, 2017 · 2 comments

Comments

@Sheridan
Copy link

The bot engine intercepts incomplete commands. For example, if you pass a command /g to the hello-bot, it will react as if it were passed to /greet

Sheridan added a commit to Sheridan/telegram-bot-swift that referenced this issue Jul 14, 2017
@zmeyc
Copy link
Member

zmeyc commented Jul 14, 2017

This is intended behavior. For example instead of "zone list" user can type "z list".
They're also supported in subcommands, i.e. router["zone list"] = f() will also react to "z l".
Probably we need a flag to optionally disable abbreviations.

@Sheridan
Copy link
Author

Yes, we need a flag, because many still remember IRC and write /me .... If the bot has a command /menu, then it call :(

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

2 participants