Options
All
  • Public
  • Public/Protected
  • All
Menu

Message can only be a regular message (body field set) and optionally one of a sticker, attachment or url

Hierarchy

  • OutgoingMessage

Index

Properties

Optional attachment

attachment: Readable | Readable[]

Readable stream(s) to be sent as attachments. Can be any file, image, voiceclip...

Optional body

body: string

a plain-text content of the outgoing message

Optional mentions

Additional information when sending a message with user mentions. This property contains sorted "name & id" pairs.

Optional replyToMessage

replyToMessage: string

message ID to which this new message would respond

Optional sticker

sticker: number

ID of the desired sticker