How to distinct normal text msg & command msg? #218
Answered
by
mymmrac
kuchaguangjie
asked this question in
Q&A
-
For now I'm doing this:
|
Beta Was this translation helpful? Give feedback.
Answered by
mymmrac
Nov 3, 2024
Replies: 2 comments 1 reply
-
I suggest to add a |
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok, now my code looks like this, and it works:
This do works without issue now.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Telego has many predicates, for commands use:
th.AnyCommand
,th.CommandEqual
,th.CommandEqualArgc
orth.CommandEqualArgv
https://github.com/mymmrac/telego/blob/main/telegohandler/predicates.go#L176