Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/lib/polling/messages-poller"

Index

Type aliases

NativeFileResouce

NativeFileResouce: MediaGenericFile | UriObject | MediaVideo

Variables

CONTACT_ID_PATTERN

CONTACT_ID_PATTERN: RegExp = /^(\d+):(.+)$/

POLLING_DELAY

POLLING_DELAY: number = 1000

Functions

formatControlClearTypingResource

formatControlTypingResource

formatConversationUpdateResource

formatEventCallResource

formatEventMessage

formatFileResource

formatGenericMessageResource

  • formatGenericMessageResource(nativeResource: MessageResource, type: resources.ResourceType): object
  • Parameters

    Returns object

    • arrivalTime: Date
    • composeTime: Date
    • conversation: string
    • from: ParsedConversationId
    • id: string
    • native: MessageResource
    • type: "Control/ClearTyping" | "Control/Typing" | "Event/Call" | "Signal/Flamingo" | "Text" | "RichText" | "RichText/UriObject" | "RichText/Location" | "RichText/Media_GenericFile" | "RichText/Media_Video" | "ConversationUpdate"

formatLocationResource

formatMediaGenericFileResource

formatMediaVideoResource

formatMessageResource

formatRichTextResource

formatSignalFlamingoResource

formatTextResource

formatUriObjectResource

parseContactId

Generated using TypeDoc