RequestMessagePartsBuilder
Functions
Adds AttachmentSource.Audio to the list of parts.
Adds AttachmentSource.Audio with AttachmentContent.URL content from the provided URL.
Adds AttachmentSource.Audio with AttachmentContent.Binary.Bytes content from the provided local file path.
Adds AttachmentSource.File with AttachmentContent.Binary.Bytes content from the provided local file path.
Adds AttachmentSource.File to the list of parts.
Adds AttachmentSource.File with AttachmentContent.URL content from the provided URL.
Adds AttachmentSource.Image to the list of parts.
Adds AttachmentSource.Image with AttachmentContent.URL content from the provided URL.
Adds AttachmentSource.Image with AttachmentContent.Binary.Bytes content from the provided local file path.
Extension function for TextContentBuilder that adds line numbering to the content.
Adds padding to each line of the content produced by the provided builder block.
Adds MessagePart to the list of parts.
Extension function to add text content to a TextContentBuilder.
Adds AttachmentSource.File with AttachmentContent.PlainText content from the provided local file path.
Adds the given text to the content. If the caret is not at the beginning of the line, a newline is added before appending the text.
Adds the given string as a new line of text to the content being built by the TextContentBuilder.
Adds AttachmentSource.Video to the list of parts.
Adds AttachmentSource.Video with AttachmentContent.URL content from the provided URL.
Adds AttachmentSource.Video with AttachmentContent.Binary.Bytes content from the provided local file path.