mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-14 04:59:56 +00:00
update bot api
This commit is contained in:
@@ -2784,7 +2784,6 @@ export interface GroupMember {
|
||||
updatedAt: string // ISO-8601 timestamp
|
||||
supportChat?: GroupSupportChat
|
||||
memberPubKey?: string
|
||||
userMemberKeyStatus: KeySendStatus
|
||||
relayLink?: string
|
||||
memberVerifiedCode?: SecurityCode
|
||||
}
|
||||
@@ -2997,38 +2996,6 @@ export namespace InvitedBy {
|
||||
}
|
||||
}
|
||||
|
||||
export type KeySendStatus =
|
||||
| KeySendStatus.Sent
|
||||
| KeySendStatus.Failed
|
||||
| KeySendStatus.Error
|
||||
| KeySendStatus.Attempts
|
||||
|
||||
export namespace KeySendStatus {
|
||||
export type Tag = "sent" | "failed" | "error" | "attempts"
|
||||
|
||||
interface Interface {
|
||||
type: Tag
|
||||
}
|
||||
|
||||
export interface Sent extends Interface {
|
||||
type: "sent"
|
||||
}
|
||||
|
||||
export interface Failed extends Interface {
|
||||
type: "failed"
|
||||
}
|
||||
|
||||
export interface Error extends Interface {
|
||||
type: "error"
|
||||
sendError: string
|
||||
}
|
||||
|
||||
export interface Attempts extends Interface {
|
||||
type: "attempts"
|
||||
sendAttempts: number // int
|
||||
}
|
||||
}
|
||||
|
||||
export type LinkContent = LinkContent.Page | LinkContent.Image | LinkContent.Video | LinkContent.Unknown
|
||||
|
||||
export namespace LinkContent {
|
||||
|
||||
@@ -1960,7 +1960,6 @@ class GroupMember(TypedDict):
|
||||
updatedAt: str # ISO-8601 timestamp
|
||||
supportChat: NotRequired["GroupSupportChat"]
|
||||
memberPubKey: NotRequired[str]
|
||||
userMemberKeyStatus: "KeySendStatus"
|
||||
relayLink: NotRequired[str]
|
||||
memberVerifiedCode: NotRequired["SecurityCode"]
|
||||
|
||||
@@ -2094,29 +2093,6 @@ InvitedBy = InvitedBy_contact | InvitedBy_user | InvitedBy_unknown
|
||||
|
||||
InvitedBy_Tag = Literal["contact", "user", "unknown"]
|
||||
|
||||
class KeySendStatus_sent(TypedDict):
|
||||
type: Literal["sent"]
|
||||
|
||||
class KeySendStatus_failed(TypedDict):
|
||||
type: Literal["failed"]
|
||||
|
||||
class KeySendStatus_error(TypedDict):
|
||||
type: Literal["error"]
|
||||
sendError: str
|
||||
|
||||
class KeySendStatus_attempts(TypedDict):
|
||||
type: Literal["attempts"]
|
||||
sendAttempts: int # int
|
||||
|
||||
KeySendStatus = (
|
||||
KeySendStatus_sent
|
||||
| KeySendStatus_failed
|
||||
| KeySendStatus_error
|
||||
| KeySendStatus_attempts
|
||||
)
|
||||
|
||||
KeySendStatus_Tag = Literal["sent", "failed", "error", "attempts"]
|
||||
|
||||
class LinkContent_page(TypedDict):
|
||||
type: Literal["page"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user