Skip to content

Conversation

@ruizlenato
Copy link
Contributor

@ruizlenato ruizlenato commented Mar 23, 2025

MatchTypeCommand
image

MatchTypeContains
image

That's one of the reasons I made this PR, it's necessary to have a command handler, to avoid problems like this

…tion

- Introduce `MatchTypeCommand` to handle command-based updates.
- Add `CommandRegexp` regex pattern for parsing commands.
- Update handler logic to support command matching.
@negasus
Copy link
Contributor

negasus commented Apr 9, 2025

Telegram API has a built-in command parser. Parsed commands are returned in the Message.Entities field. I tried to use it in this PR. What do you think?

@ruizlenato
Copy link
Contributor Author

Telegram API has a built-in command parser. Parsed commands are returned in the Message.Entities field. I tried to use it in this PR. What do you think?

I liked it, I just think that “MatchTypeCommandStartOnly” should be “MatchTypeCommand” and “MatchTypeCommand” should be something like “MatchTypeCommandContains”.

@negasus
Copy link
Contributor

negasus commented Apr 10, 2025

I agree with the naming. I thought about this.
Can I close this PR?

@ruizlenato
Copy link
Contributor Author

Ok

@ruizlenato ruizlenato closed this Apr 10, 2025
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

Successfully merging this pull request may close these issues.

2 participants