Core request/response types used by the SDK.
class SendMessageRequest(TypedDict):
type: str
to: int | list[int] | list[str]
content: str
topic: str | None
Generic response with result, msg, data: T | None.
Response with messages: list[Message], result, msg.
Response with events: list[Event], result, msg.
class Message(TypedDict):
id: int
content: str
sender_id: int
sender_email: str
sender_full_name: str
display_recipient: str | list[str]
type: str
subject: str
stream_id: int | None
is_me_message: bool | None
class Event(TypedDict):
id: int
type: str
message: Message
flags: list[str] | None
class SendMessageRequest(TypedDict):
type: str
to: int | list[int] | list[str]
content: str
topic: str | None
result, msg, data: T | None.messages: list[Message], result, msg.events: list[Event], result, msg.int | strint | strstrNone; check before use.