Accessors
overrideSenderName
- get overrideSenderName(): string
Methods
getReceivedTimestamp
- getReceivedTimestamp(): number
getShowpadlock
- getShowpadlock(): boolean
getSortTimestamp
- getSortTimestamp(): number
getSummarytext
- getSummarytext(approxCharacters: number): string
-
Parameters
Returns string
getVideochatType
- getVideochatType(): number
getVideochatUrl
- getVideochatUrl(): string
hasDeviatingTimestamp
- hasDeviatingTimestamp(): any
isSetupmessage
- isSetupmessage(): boolean
latefilingMediasize
- latefilingMediasize(width: number, height: number, duration: number): void
-
Parameters
-
width: number
-
height: number
-
duration: number
Returns void
setDimension
- setDimension(width: number, height: number): this
-
Parameters
-
width: number
-
height: number
Returns this
setDuration
- setDuration(duration: number): this
setFile
- setFile(file: string, mime?: undefined | string): this
-
Parameters
-
file: string
-
Optional mime: undefined | string
Returns this
setHTML
- setHTML(html: string): this
setLocation
- setLocation(longitude: number, latitude: number): this
-
Parameters
-
longitude: number
-
latitude: number
Returns this
setOverrideSenderName
- setOverrideSenderName(senderName: string): this
setQuote
- setQuote(quotedMessage: Message | null): this
setText
- setText(text: string): this
toJson
- toJson(): { chatId: number; downloadState: MessageDownloadState; duration: number; file: string; fromId: number; hasDeviatingTimestamp: any; hasHTML: boolean; hasLocation: boolean; id: number; isForwarded: boolean; isInfo: boolean; isSetupmessage: boolean; overrideSenderName: string; parentId: undefined | number; quotedMessageId: null | number; quotedText: string; receivedTimestamp: number; showPadlock: boolean; sortTimestamp: number; state: any; subject: string; summary: { state: number; text1: string; text1Meaning: string; text2: string; timestamp: number }; text: string; timestamp: number; videochatType: number; videochatUrl: string; viewType: any; webxdcInfo: null | { document?: undefined | string; icon: string; name: string; summary: string }; dimensions: object }
-
Returns { chatId: number; downloadState: MessageDownloadState; duration: number; file: string; fromId: number; hasDeviatingTimestamp: any; hasHTML: boolean; hasLocation: boolean; id: number; isForwarded: boolean; isInfo: boolean; isSetupmessage: boolean; overrideSenderName: string; parentId: undefined | number; quotedMessageId: null | number; quotedText: string; receivedTimestamp: number; showPadlock: boolean; sortTimestamp: number; state: any; subject: string; summary: { state: number; text1: string; text1Meaning: string; text2: string; timestamp: number }; text: string; timestamp: number; videochatType: number; videochatUrl: string; viewType: any; webxdcInfo: null | { document?: undefined | string; icon: string; name: string; summary: string }; dimensions: object }
-
chatId: number
-
-
duration: number
-
file: string
-
fromId: number
-
hasDeviatingTimestamp: any
-
hasHTML: boolean
-
hasLocation: boolean
-
id: number
-
isForwarded: boolean
-
isInfo: boolean
-
isSetupmessage: boolean
-
overrideSenderName: string
-
parentId: undefined | number
-
quotedMessageId: null | number
-
quotedText: string
-
receivedTimestamp: number
-
showPadlock: boolean
-
sortTimestamp: number
-
state: any
-
subject: string
-
summary: { state: number; text1: string; text1Meaning: string; text2: string; timestamp: number }
-
state: number
-
text1: string
-
text1Meaning: string
-
text2: string
-
timestamp: number
-
text: string
-
timestamp: number
-
videochatType: number
-
videochatUrl: string
-
viewType: any
-
webxdcInfo: null | { document?: undefined | string; icon: string; name: string; summary: string }
-
dimensions: object
-
height: number
-
width: number
Wrapper around dc_msg_t*