11 lines
227 B
Go
11 lines
227 B
Go
|
package util
|
||
|
|
||
|
import (
|
||
|
"github.com/mymmrac/telego"
|
||
|
th "github.com/mymmrac/telego/telegohandler"
|
||
|
)
|
||
|
|
||
|
func MatchCommand(command string, msg *telego.Message) bool {
|
||
|
return th.CommandEqual(command)(telego.Update{Message: msg})
|
||
|
}
|