-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWebAppInitData.go
36 lines (33 loc) · 1.1 KB
/
WebAppInitData.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package telegramparser
type WebAppUser struct {
Id int64 `json:"id"`
IsBot bool `json:"is_bot,omitempty"`
FirstName string `json:"first_name"`
LastName string `json:"last_name,omitempty"`
Username string `json:"username,omitempty"`
LanguageCode string `json:"language_code,omitempty"`
IsPremium bool `json:"is_premium,omitempty"`
AddedToAttachmentMenu bool `json:"added_to_attachment_menu,omitempty"`
AllowsWriteToPM bool `json:"allows_write_to_pm,omitempty"`
PhotoURL string `json:"photo_url,omitempty"`
}
type WebAppChat struct {
Id int64 `json:"id"`
Type string `json:"type"`
Title string `json:"title"`
Username string `json:"username,omitempty"`
PhotoURL string `json:"photo_url,omitempty"`
}
type WebAppInitData struct {
QueryId string
User WebAppUser
Receiver WebAppUser
Chat WebAppChat
ChatType string
ChatInstance string
StartParam string
CanSendAfter int64
AuthDate int64
Hash string
Signature string
}