Type alias Message

Message: {
    chatId: T.U32;
    dimensionsHeight: T.I32;
    dimensionsWidth: T.I32;
    downloadState: DownloadState;
    duration: T.I32;
    error: string | null;
    file: string | null;
    fileBytes: U64;
    fileMime: string | null;
    fileName: string | null;
    fromId: T.U32;
    hasDeviatingTimestamp: boolean;
    hasHtml: boolean;
    hasLocation: boolean;
    id: T.U32;
    isBot: boolean;
    isForwarded: boolean;
    isInfo: boolean;
    isSetupmessage: boolean;
    overrideSenderName: string | null;
    parentId: T.U32 | null;
    quote: MessageQuote | null;
    reactions: Reactions | null;
    receivedTimestamp: I64;
    sender: Contact;
    setupCodeBegin: string | null;
    showPadlock: boolean;
    sortTimestamp: I64;
    state: T.U32;
    subject: string;
    systemMessageType: SystemMessageType;
    text: string;
    timestamp: I64;
    vcardContact: VcardContact | null;
    videochatType: T.U32 | null;
    videochatUrl: string | null;
    viewType: Viewtype;
    webxdcInfo: WebxdcMessageInfo | null;
}

Type declaration

  • chatId: T.U32
  • dimensionsHeight: T.I32
  • dimensionsWidth: T.I32
  • downloadState: DownloadState
  • duration: T.I32
  • error: string | null

    An error text, if there is one.

  • file: string | null
  • fileBytes: U64
  • fileMime: string | null
  • fileName: string | null
  • fromId: T.U32
  • hasDeviatingTimestamp: boolean
  • hasHtml: boolean
  • hasLocation: boolean

    Check if a message has a POI location bound to it. These locations are also returned by get_locations method. The UI may decide to display a special icon beside such messages.

  • id: T.U32
  • isBot: boolean

    True if the message was sent by a bot.

  • isForwarded: boolean
  • isInfo: boolean
  • isSetupmessage: boolean
  • overrideSenderName: string | null
  • parentId: T.U32 | null
  • quote: MessageQuote | null
  • reactions: Reactions | null
  • receivedTimestamp: I64
  • sender: Contact
  • setupCodeBegin: string | null
  • showPadlock: boolean
  • sortTimestamp: I64
  • state: T.U32
  • subject: string
  • systemMessageType: SystemMessageType

    when is_info is true this describes what type of system message it is

  • text: string
  • timestamp: I64
  • vcardContact: VcardContact | null
  • videochatType: T.U32 | null
  • videochatUrl: string | null
  • viewType: Viewtype
  • webxdcInfo: WebxdcMessageInfo | null

Generated using TypeDoc