-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommand_type.go
38 lines (31 loc) · 1.08 KB
/
command_type.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
37
38
package telebot
type setMyCommands struct {
Commands []BotCommand `json:"commands"`
Scope *BotCommandScope `json:"scope,omitempty"`
Language string `json:"language_code,omitempty"`
}
type getMyCommands struct {
Scope *BotCommandScope `json:"scope,omitempty"`
Language string `json:"language_code,omitempty"`
}
type deleteMyCommands struct {
Scope *BotCommandScope `json:"scope,omitempty"`
Language string `json:"language_code,omitempty"`
}
type setMyNameRequest struct {
Name string `json:"name"`
Language string `json:"language_code,omitempty"`
}
type setMyDescriptionRequest struct {
Description string `json:"description,omitempty"`
ShortDescription string `json:"short_description,omitempty"`
Language string `json:"language_code,omitempty"`
}
type setChatMenuButton struct {
ChatID any `json:"chat_id,omitempty"`
Button *MenuButton `json:"menu_button,omitempty"`
}
type setMyDefaultAdministratorRights struct {
Rights *Rights `json:"rights,omitempty"`
ForChannels bool `json:"for_channels,omitempty"`
}