mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 15:03:16 +00:00
bots: SimpleX Calculator demo bot (#7583)
* bots: SimpleX Calculator demo bot * refactor * use local server in test * simplify * icon * simplify * expression * replies * improve * log * update name in bot address * @simplex-chat/type: 0.12.0 * simplex-chat nodejs: 7.1.0-beta.4.2 * update dependencies * option to add domain to bot address --------- Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
This commit is contained in:
1 parent
4cb244441b
commit
643a9afad6
35 files changed
+1075
-49
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@simplex-chat/types",
|
||||
"version": "0.11.4",
|
||||
"version": "0.12.0",
|
||||
"description": "TypeScript types for SimpleX Chat bot libraries",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
||||
@@ -66,6 +66,21 @@ export namespace APISetProfileAddress {
|
||||
}
|
||||
}
|
||||
|
||||
// Set or remove SimpleX name of bot address. The name must be registered with the address short link.
|
||||
// Network usage: interactive.
|
||||
export interface APISetUserDomain {
|
||||
userId: number // int64
|
||||
simplexDomain?: string
|
||||
}
|
||||
|
||||
export namespace APISetUserDomain {
|
||||
export type Response = CR.UserProfileUpdated | CR.UserProfileNoChange | CR.ChatCmdError
|
||||
|
||||
export function cmdString(self: APISetUserDomain): string {
|
||||
return '/_set domain ' + self.userId + (self.simplexDomain ? ' ' + self.simplexDomain : '')
|
||||
}
|
||||
}
|
||||
|
||||
// Set bot address settings.
|
||||
// Network usage: interactive.
|
||||
export interface APISetAddressSettings {
|
||||
|
||||
Reference in new issue
Block a user