feat: add MessagesChatPermission
@@ -393,8 +393,31 @@ type MessagesConversationChatSettings struct {
IsGroupChannel BaseBoolInt `json:"is_group_channel"`
IsDisappearing BaseBoolInt `json:"is_disappearing"`
IsService BaseBoolInt `json:"is_service"`
+ IsCreatedForCall BaseBoolInt `json:"is_created_for_call"`
OwnerID int `json:"owner_id"`
AdminIDs []int `json:"admin_ids"`
+ Permissions MessagesChatPermissions `json:"permissions"`
+}
+
+// MessagesChatPermission struct.
+type MessagesChatPermission string
+
+// Possible values.
+const (
+ OwnerChatPermission MessagesChatPermission = "owner"
+ OwnerAndAdminsChatPermission MessagesChatPermission = "owner_and_admins"
+ AllChatPermission MessagesChatPermission = "all"
+)
+
+// MessagesChatPermissions struct.
+type MessagesChatPermissions struct {
+ Invite MessagesChatPermission `json:"invite"`
+ ChangeInfo MessagesChatPermission `json:"change_info"`
+ ChangePin MessagesChatPermission `json:"change_pin"`
+ UseMassMentions MessagesChatPermission `json:"use_mass_mentions"`
+ SeeInviteLink MessagesChatPermission `json:"see_invite_link"`
+ Call MessagesChatPermission `json:"call"`
+ ChangeAdmins MessagesChatPermission `json:"change_admins"`
}
// MessagesConversationPeer struct.
