| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This package is not in the latest version of its module.
Go to latest Published: Jul 9, 2021 License: MITThe Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Modules with tagged versions give importers more predictable builds.
When a project reaches major version v1 it is considered stable.
This section is empty.
var ErrInvalidCreds = errors.New("invalid telegram creds")
ErrInvalidCreds represents error in case of having invalid Telegram auth credentials
This section is empty.
type Credentials struct {
ID int64 `json:"id"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Username string `json:"username"`
PhotoURL string `json:"photo_url"`
AuthDate int64 `json:"auth_date"`
Hash string `json:"hash"`
}
Credentials are Telegram Login credentials available for parsing from JSON.
func (c *Credentials) String() string
String builds credentials string, excluding hash field.
func (c *Credentials) Verify(token []byte) error
Verify checks if the credentials are from Telegram. Returns nil error if credentials are from Telegram.
| Back | FazBrowse Home | New Git URL |