core: parameter for create address command to configure ratchet keys

This commit is contained in:
Evgeny Poberezkin
2026-07-23 19:49:55 +01:00
parent c97871ffbc
commit 3e355c002c
9 changed files with 25 additions and 49 deletions
+4 -3
View File
@@ -88,19 +88,20 @@ Create bot address.
**Parameters**:
- userId: int64
- pqRatchet: bool?
**Syntax**:
```
/_address <userId>
/_address <userId>[ pq_ratchet=on|off]
```
```javascript
'/_address ' + userId // JavaScript
'/_address ' + userId + (typeof pqRatchet == 'boolean' ? ' pq_ratchet=' + (pqRatchet ? 'on' : 'off') : '') // JavaScript
```
```python
'/_address ' + str(userId) # Python
'/_address ' + str(userId) + ((' pq_ratchet=' + ('on' if pqRatchet else 'off')) if pqRatchet is not None else '') # Python
```
**Responses**: