-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.go
More file actions
43 lines (36 loc) · 1005 Bytes
/
Copy pathtypes.go
File metadata and controls
43 lines (36 loc) · 1005 Bytes
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
37
38
39
40
41
42
43
package telego
type Update struct {
UpdateID int `json:"update_id"`
Message *Message `json:"message"`
CallbackQuery *CallbackQuery `json:"callback_query"`
}
type Message struct {
MessageID int `json:"message_id"`
Chat Chat `json:"chat"`
From User `json:"from"`
Date int `json:"date"`
Text string `json:"text"`
}
type Chat struct {
ID int64 `json:"id"`
Type string `json:"type"`
}
type User struct {
ID int `json:"id"`
FirstName string `json:"first_name"`
Username string `json:"username"`
}
type CallbackQuery struct {
ID string `json:"id"`
From User `json:"from"`
Data string `json:"data"`
Message *Message `json:"message"`
}
type InlineKeyboardButton struct {
Text string `json:"text"`
CallbackData string `json:"callback_data"`
URL string `json:"url,omitempty"`
}
type InlineKeyboardMarkup struct {
InlineKeyboard [][]InlineKeyboardButton `json:"inline_keyboard"`
}