Interface GetHistoryMsgsOptions

Hierarchy

  • GetHistoryMsgsOptions

Properties

asc?: boolean

@Multi_Lang_Tag

Locale

cn 是否为升序排序

false 表示返回的消息按时间降序排序; true 表示按时间升序排序

Locale

Locale

en Whether to sort in ascending order

false: the returned messages are sorted in descending order by time. true: the returned messages are sorted in ascending order by time.

Locale

beginTime?: number

@Multi_Lang_Tag

Locale

cn 开始时间戳, 精确到 ms, 默认为 0

Locale

Locale

en Start timestamp (accurate to ms). Default value: 0

Locale

endTime?: number

@Multi_Lang_Tag

Locale

cn 结束时间戳, 精确到 ms, 默认为服务器的当前时间

Locale

Locale

en End timestamp (accurate to ms). Defaults value: the server's current time

Locale

lastMsgId?: string

@Multi_Lang_Tag

Locale

cn 上次查询的最后一条消息的 idServer, 第一次不填

Locale

Locale

en Message ID (generated by the IM server) of the last message that was searched for. Not required for the first time.

Locale

limit?: number

@Multi_Lang_Tag

Locale

cn 本次查询的消息数量限制, 最多 100 条, 默认 100 条

Locale

Locale

en The limit (100) of the number of messages for the current query. The default value is also 100.

Locale

msgTypes?: ("text" | "image" | "audio" | "video" | "geo" | "notification" | "file" | "tip" | "robot" | "g2" | "custom")[]

@Multi_Lang_Tag

Locale

cn 消息类型列表,默认全部消息类型

Locale

Locale

en Message types. Default value: all message types

Locale

reverse?: boolean

@Multi_Lang_Tag

Locale

cn 是否为反向查询,默认 false

false 表示从 endTime 开始往前查找历史消息; true 表示从 beginTime 开始往后查找历史消息

Locale

Locale

en Whether to sort in ascending order

false: the returned messages are sorted in descending order by time. true: the returned messages are sorted in ascending order by time.

Locale

scene: "p2p" | "team" | "superTeam"

@Multi_Lang_Tag

Locale

cn 场景

Locale

Locale

en Scenes

Locale

to: string

@Multi_Lang_Tag

Locale

cn 聊天对象, 账号或者群id

Locale

Locale

en The person that the user chats with, account, or group ID

Locale

Generated using TypeDoc