type github.com/gotd/td/telegram/auth.BotToken
11 uses
github.com/gotd/td/telegram/auth (current package)
bot_token.go#L18: type BotToken struct {
bot_token.go#L26: func (t BotToken) String() string {
bot_token.go#L35: func ParseBotToken(s string) (BotToken, error) {
bot_token.go#L37: return BotToken{}, errors.Wrapf(ErrInvalidBotToken, "longer than %d characters", maxBotTokenLength)
bot_token.go#L40: return BotToken{}, errors.Wrap(ErrInvalidBotToken, "contains '/'")
bot_token.go#L44: return BotToken{}, errors.Wrap(ErrInvalidBotToken, "no ':'")
bot_token.go#L47: return BotToken{}, errors.Wrap(ErrInvalidBotToken, "bot ID is empty or has a leading zero")
bot_token.go#L51: return BotToken{}, errors.Wrap(ErrInvalidBotToken, "bot ID is not a decimal number")
bot_token.go#L56: return BotToken{}, errors.Wrap(ErrInvalidBotToken, "bot ID out of range")
bot_token.go#L59: return BotToken{}, errors.Wrap(ErrInvalidBotToken, "empty secret")
bot_token.go#L61: return BotToken{ID: id, Secret: secret}, nil
 |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |