Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HashIsNotValid = errors.New("hash is not valid")
)
Functions ¶
This section is empty.
Types ¶
type WebAppUser ¶
type WebAppUser struct { ID int `json:"id"` IsBot bool `json:"is_bot"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Username string `json:"username"` LanguageCode string `json:"language_code"` PhotoUrl string `json:"photo_url"` }
func VerifyWebAppData ¶
func VerifyWebAppData(telegramInitData string, token string) (error, WebAppUser)
Click to show internal directories.
Click to hide internal directories.