core: link notices

This commit is contained in:
Evgeny @ SimpleX Chat committed 2026-09-27 16:15:58 +00:00
1 parent 3ed4511e80
commit 40fc230f06
50 files changed
+1329 -353

No files matched your search

+8 -6
View File
@@ -888,19 +888,20 @@ Remove members. Requires Admin role.
- groupId: int64
- groupMemberIds: [int64]
- withMessages: bool
- notice: [LinkNotice](./TYPES.md#linknotice)?
**Syntax**:
```
/_remove #<groupId> <groupMemberIds[0]>[,<groupMemberIds[1]>...][ messages=on]
/_remove #<groupId> <groupMemberIds[0]>[,<groupMemberIds[1]>...][ messages=on][ notice=<json(notice)>]
```
```javascript
'/_remove #' + groupId + ' ' + groupMemberIds.join(',') + (withMessages ? ' messages=on' : '') // JavaScript
'/_remove #' + groupId + ' ' + groupMemberIds.join(',') + (withMessages ? ' messages=on' : '') + (notice ? ' notice=' + JSON.stringify(notice) : '') // JavaScript
```
```python
'/_remove #' + str(groupId) + ' ' + ','.join(map(str, groupMemberIds)) + (' messages=on' if withMessages else '') # Python
'/_remove #' + str(groupId) + ' ' + ','.join(map(str, groupMemberIds)) + (' messages=on' if withMessages else '') + ((' notice=' + json.dumps(notice)) if notice is not None else '') # Python
```
**Responses**:
@@ -1857,19 +1858,20 @@ Delete chat.
**Parameters**:
- chatRef: [ChatRef](./TYPES.md#chatref)
- chatDeleteMode: [ChatDeleteMode](./TYPES.md#chatdeletemode)
- notice: [LinkNotice](./TYPES.md#linknotice)?
**Syntax**:
```
/_delete <str(chatRef)> <str(chatDeleteMode)>
/_delete <str(chatRef)> <str(chatDeleteMode)>[ notice=<json(notice)>]
```
```javascript
'/_delete ' + ChatRef.cmdString(chatRef) + ' ' + ChatDeleteMode.cmdString(chatDeleteMode) // JavaScript
'/_delete ' + ChatRef.cmdString(chatRef) + ' ' + ChatDeleteMode.cmdString(chatDeleteMode) + (notice ? ' notice=' + JSON.stringify(notice) : '') // JavaScript
```
```python
'/_delete ' + ChatRef_cmd_string(chatRef) + ' ' + ChatDeleteMode_cmd_string(chatDeleteMode) # Python
'/_delete ' + ChatRef_cmd_string(chatRef) + ' ' + ChatDeleteMode_cmd_string(chatDeleteMode) + ((' notice=' + json.dumps(notice)) if notice is not None else '') # Python
```
**Responses**:
+25
View File
@@ -129,6 +129,7 @@ This file is generated automatically.
- [InvitationLinkPlan](#invitationlinkplan)
- [InvitedBy](#invitedby)
- [LinkContent](#linkcontent)
- [LinkNotice](#linknotice)
- [LinkOwnerSig](#linkownersig)
- [LinkPreview](#linkpreview)
- [LocalBadge](#localbadge)
@@ -1240,6 +1241,11 @@ UnsupportedConnReq:
ConnReqMessageProhibited:
- type: "connReqMessageProhibited"
LinkNotice:
- type: "linkNotice"
- expiresAt: UTCTime?
- reason: [ReportReason](#reportreason)?
ContactNotReady:
- type: "contactNotReady"
- contact: [Contact](#contact)
@@ -1939,6 +1945,11 @@ ContactViaAddress:
- type: "contactViaAddress"
- contact: [Contact](#contact)
LinkNotice:
- type: "linkNotice"
- expiresAt: UTCTime?
- reason: [ReportReason](#reportreason)?
---
@@ -2557,6 +2568,11 @@ UpdateRequired:
- type: "updateRequired"
- groupSLinkData_: [GroupShortLinkData](#groupshortlinkdata)?
LinkNotice:
- type: "linkNotice"
- expiresAt: UTCTime?
- reason: [ReportReason](#reportreason)?
---
@@ -2849,6 +2865,15 @@ Unknown:
- json: JSONObject
---
## LinkNotice
**Record type**:
- ttl: int64?
- reason: [ReportReason](#reportreason)?
---
## LinkOwnerSig