Class QuotedPrintableAttachmentProperties
Represents an attachment with quoted-printable encoded contents.
public class QuotedPrintableAttachmentProperties : AttachmentProperties, IHttpSerializable
- Inheritance
-
QuotedPrintableAttachmentProperties
- Implements
- Inherited Members
Constructors
QuotedPrintableAttachmentProperties(string, Stream)
Represents an attachment with quoted-printable encoded contents.
public QuotedPrintableAttachmentProperties(string fileName, Stream stream)
Parameters
fileNamestringName of the attachment (max 1024 characters for attachments sent by message, 2-30 characters for attachments used for sticker creation). streamStreamA stream containing the attachment's contents, encoded in quoted-printable.
Methods
Serialize()
Serializes the object or its part into HttpContent.
public override HttpContent Serialize()
Returns
WithDescription(string?)
Description for the attachment (max 1024 characters for attachments sent by message, max 200 characters for attachments used for sticker creation).
public QuotedPrintableAttachmentProperties WithDescription(string? description)
Parameters
descriptionstring
Returns
WithFileName(string)
Name of the attachment (max 1024 characters for attachments sent by message, 2-30 characters for attachments used for sticker creation).
public QuotedPrintableAttachmentProperties WithFileName(string fileName)
Parameters
fileNamestring
Returns
WithTitle(string?)
The title of the attachment.
public QuotedPrintableAttachmentProperties WithTitle(string? title)
Parameters
titlestring