Constructs a new ExtendedTextMessage.
Optional
properties:
IExtendedTextMessage
Properties to set
ExtendedTextMessage backgroundArgb.
ExtendedTextMessage canonicalUrl.
Optional
contextExtendedTextMessage contextInfo.
ExtendedTextMessage description.
ExtendedTextMessage doNotPlayInline.
ExtendedTextMessage font.
ExtendedTextMessage inviteLinkGroupType.
ExtendedTextMessage inviteLinkGroupTypeV2.
ExtendedTextMessage inviteLinkParentGroupSubjectV2.
ExtendedTextMessage inviteLinkParentGroupThumbnailV2.
ExtendedTextMessage jpegThumbnail.
ExtendedTextMessage matchedText.
ExtendedTextMessage mediaKey.
ExtendedTextMessage mediaKeyTimestamp.
ExtendedTextMessage previewType.
ExtendedTextMessage text.
ExtendedTextMessage textArgb.
ExtendedTextMessage thumbnailDirectPath.
ExtendedTextMessage thumbnailEncSha256.
ExtendedTextMessage thumbnailHeight.
ExtendedTextMessage thumbnailSha256.
ExtendedTextMessage thumbnailWidth.
ExtendedTextMessage title.
ExtendedTextMessage viewOnce.
Static
create
Creates a new ExtendedTextMessage instance using the specified properties.
Optional
properties:
IExtendedTextMessage
Properties to set
ExtendedTextMessage instance
Static
decode
Decodes an ExtendedTextMessage message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length:
number
Message length if known beforehand
ExtendedTextMessage
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes an ExtendedTextMessage message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
ExtendedTextMessage
If the payload is not a reader or valid buffer
If required fields are missing
Static
encode
Encodes the specified ExtendedTextMessage message. Does not implicitly verify messages.
ExtendedTextMessage message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
encodeEncodes the specified ExtendedTextMessage message, length delimited. Does not implicitly verify messages.
ExtendedTextMessage message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
fromCreates an ExtendedTextMessage message from a plain object. Also converts values to their respective internal types.
Plain object
ExtendedTextMessage
Static
toCreates a plain object from an ExtendedTextMessage message. Also converts values to other types if specified.
ExtendedTextMessage
Optional
options:
IConversionOptions
Conversion options
Plain object
Static
verify
Generated using TypeDoc
Represents an ExtendedTextMessage.