-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathchat_type.go
164 lines (136 loc) · 4.98 KB
/
chat_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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
package telebot
type banChatMemberRequest struct {
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
UntilDate *int64 `json:"until_date,omitempty"`
RevokeMessages *bool `json:"revoke_messages,omitempty"`
}
type unbanChatMemberRequest struct {
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
OnlyIfBanned bool `json:"only_if_banned,omitempty"`
}
type restrictChatMemberRequest struct {
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
Permissions ChatPermissions `json:"permissions"`
UseIndependentChatPermissions bool `json:"use_independent_chat_permissions,omitempty"`
UntilDate int64 `json:"until_date,omitempty"`
}
type promoteChatMemberRequest struct {
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
IsAnonymous *bool `json:"is_anonymous,omitempty"`
CanManageChat *bool `json:"can_manage_chat,omitempty"`
CanDeleteMessages *bool `json:"can_delete_messages,omitempty"`
CanManageVideoChats *bool `json:"can_manage_video_chats,omitempty"`
CanRestrictMembers *bool `json:"can_restrict_members,omitempty"`
CanPromoteMembers *bool `json:"can_promote_members,omitempty"`
CanChangeInfo *bool `json:"can_change_info,omitempty"`
CanInviteUsers *bool `json:"can_invite_users,omitempty"`
CanPostMessages *bool `json:"can_post_messages,omitempty"`
CanEditMessages *bool `json:"can_edit_messages,omitempty"`
CanPinMessages *bool `json:"can_pin_messages,omitempty"`
CanPostStories *bool `json:"can_post_stories,omitempty"`
CanEditStories *bool `json:"can_edit_stories,omitempty"`
CanDeleteStories *bool `json:"can_delete_stories,omitempty"`
CanManageTopics *bool `json:"can_manage_topics,omitempty"`
}
type setChatAdministratorCustomTitleRequest struct {
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
CustomTitle string `json:"custom_title"`
}
type banChatSenderChatRequest struct {
ChatID any `json:"chat_id"`
SenderChatID int64 `json:"sender_chat_id"`
}
type unbanChatSenderChatRequest struct {
ChatID any `json:"chat_id"`
SenderChatID int64 `json:"sender_chat_id"`
}
type setChatPermissionsRequest struct {
ChatID any `json:"chat_id"`
Permissions ChatPermissions `json:"permissions"`
UseIndependentChatPermissions *bool `json:"use_independent_chat_permissions,omitempty"`
}
type exportChatInviteLinkRequest struct {
ChatID any `json:"chat_id"`
}
type createChatInviteLinkRequest struct {
ChatID any `json:"chat_id"`
Name string `json:"name,omitempty"`
ExpireDate int64 `json:"expire_date,omitempty"`
MemberLimit int `json:"member_limit,omitempty"`
CreatesJoinRequest bool `json:"creates_join_request,omitempty"`
}
type editChatInviteLinkRequest struct {
ChatID any `json:"chat_id"`
InviteLink string `json:"invite_link"`
Name string `json:"name,omitempty"`
ExpireDate int64 `json:"expire_date,omitempty"`
MemberLimit int `json:"member_limit,omitempty"`
CreatesJoinRequest bool `json:"creates_join_request,omitempty"`
}
type revokeChatInviteLinkRequest struct {
ChatID any `json:"chat_id"`
InviteLink string `json:"invite_link"`
}
type approveChatJoinRequestParams struct {
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
}
type declineChatJoinRequestParams struct {
ChatID any `json:"chat_id"`
UserID int64 `json:"user_id"`
}
type setChatPhotoParams struct {
ChatID any `json:"chat_id"`
Photo File `json:"photo"`
}
type deleteChatPhotoParams struct {
ChatID any `json:"chat_id"`
}
type setChatTitleParams struct {
ChatID any `json:"chat_id"`
Title string `json:"title"`
}
type setChatDescriptionParams struct {
ChatID any `json:"chat_id"`
Description string `json:"description"`
}
type pinChatMessageRequest struct {
ChatID any `json:"chat_id"`
MessageID int `json:"message_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
}
type unpinChatMessageRequest struct {
ChatID any `json:"chat_id"`
MessageID int `json:"message_id,omitempty"`
}
type unpinAllChatMessagesRequest struct {
ChatID any `json:"chat_id"`
}
type leaveChatRequest struct {
ChatID any `json:"chat_id"`
}
type getChatRequest struct {
ChatID interface{} `json:"chat_id"`
}
type getChatAdministratorsRequest struct {
ChatID interface{} `json:"chat_id"`
}
type getChatMemberCountRequest struct {
ChatID interface{} `json:"chat_id"`
}
type getChatMemberRequest struct {
ChatID interface{} `json:"chat_id"`
UserID int64 `json:"user_id"`
}
type setChatStickerSetRequest struct {
ChatID any `json:"chat_id"`
StickerSetName string `json:"sticker_set_name"`
}
type deleteChatStickerSetRequest struct {
ChatID any `json:"chat_id"`
}