Optionalcaption(Optional) The caption text for the media file.
Optionalclient(Optional) The locally managed duration this message should exist client side before self-destructing.
The media file to send.
The name of the media file.
The size of the media file in bytes.
The MIME type of the media file.
Identifier of the handle owned by this client.
Optionalmentions(Optional) The list of mentions in the caption.
The target recipient.
Optionalreply(Optional) Required for replying to messages. The message identifier that the new message will be associated with when creating quoted message replies. This should be set to the message identifier of the message being replied to.
Optionalserver(Optional) The absolute duration this message should exist server side before self-destructing.
Optionalthread(Optional) Required for thread messages. The message identifier that the new message will be associated with when creating or replying in a message thread. This should be set to the message identifier of the original message of a thread.
Optionalthumbnail(Optional) The file containing the thumbnail.
Optionalthumbnail(Optional) The thumbnail image information.
Properties required to send a new media message.
SendMediaInput