core: parameter for create address command to configure ratchet keys

This commit is contained in:
Evgeny Poberezkin committed 2026-07-23 19:49:55 +01:00
1 parent c97871ffbc
commit 3e355c002c
9 files changed
+25 -49

No files matched your search

@@ -12,13 +12,14 @@ import {CR} from "./responses"
// Network usage: interactive.
export interface APICreateMyAddress {
userId: number // int64
pqRatchet?: boolean
}
export namespace APICreateMyAddress {
export type Response = CR.UserContactLinkCreated | CR.ChatCmdError
export function cmdString(self: APICreateMyAddress): string {
return '/_address ' + self.userId
return '/_address ' + self.userId + (typeof self.pqRatchet == 'boolean' ? ' pq_ratchet=' + (self.pqRatchet ? 'on' : 'off') : '')
}
}