Options
All
  • Public
  • Public/Protected
  • All
Menu

Module nim/MessageExtendInterface

Index

Type aliases

NIMMsgPinInfo: { from: string; idClient: string; idServer: string; scene: "p2p" | "team" | "superTeam"; sessionId: string; time: number; to: string }

Type declaration

  • from: string

    消息发送方, 帐号

  • idClient: string

    端测生成的消息id, 可作为消息唯一主键使用。

  • idServer: string

    服务器用于区分消息用的ID, 用于获取历史消息和获取包含关键词的历史消息。

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

    消息场景:

    • p2p:单聊场景
    • team:群聊场景
    • superteam:超大群场景
  • sessionId: string

    消息所属的会话的ID

  • time: number

    时间戳

  • to: string

    消息接收方, 帐号或群id