Debian Codegraph @

pkg/services/chat/telegram/telegram_token.go

raw symbols SCIP
1 package telegramscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/chat/telegram`/
2
3 import "regexpscip-go gomod github.com/golang/go/src . regexp/"
4
5 // IsTokenValid for use with telegram.
6 func IsTokenValidscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/chat/telegram`/IsTokenValid().(token string) bool {
7 matched, err := regexpscip-go gomod github.com/golang/go/src . regexp/.MatchStringscip-go gomod github.com/golang/go/src . regexp/MatchString().("^[0-9]+:[a-zA-Z0-9_-]+$", token)
8
9 return matched && err == nil
10 }