core, ui: relay management - add, remove relays, synchronization to relay list (#6917)

This commit is contained in:
spaced4ndy
2026-05-08 07:19:16 +00:00
committed by GitHub
parent d9cfc9bd3d
commit 6f8a07e4ea
44 changed files with 1861 additions and 182 deletions
+46
View File
@@ -32,6 +32,7 @@ This file is generated automatically.
- [APINewGroup](#apinewgroup)
- [APINewPublicGroup](#apinewpublicgroup)
- [APIGetGroupRelays](#apigetgrouprelays)
- [APIAddGroupRelays](#apiaddgrouprelays)
- [APIUpdateGroupProfile](#apiupdategroupprofile)
[Group link commands](#group-link-commands)
@@ -1034,6 +1035,51 @@ ChatCmdError: Command error (only used in WebSockets API).
---
### APIAddGroupRelays
Add relays to group.
*Network usage*: interactive.
**Parameters**:
- groupId: int64
- relayIds: [int64]
**Syntax**:
```
/_add relays #<groupId> <relayIds[0]>[,<relayIds[1]>...]
```
```javascript
'/_add relays #' + groupId + ' ' + relayIds.join(',') // JavaScript
```
```python
'/_add relays #' + str(groupId) + ' ' + ','.join(map(str, relayIds)) # Python
```
**Responses**:
GroupRelaysAdded: Group relays added.
- type: "groupRelaysAdded"
- user: [User](./TYPES.md#user)
- groupInfo: [GroupInfo](./TYPES.md#groupinfo)
- groupLink: [GroupLink](./TYPES.md#grouplink)
- groupRelays: [[GroupRelay](./TYPES.md#grouprelay)]
GroupRelaysAddFailed: Group relays add failed.
- type: "groupRelaysAddFailed"
- user: [User](./TYPES.md#user)
- addRelayResults: [[AddRelayResult](./TYPES.md#addrelayresult)]
ChatCmdError: Command error (only used in WebSockets API).
- type: "chatCmdError"
- chatError: [ChatError](./TYPES.md#chaterror)
---
### APIUpdateGroupProfile
Update group profile.