Class Base64AttachmentProperties
public class Base64AttachmentProperties : AttachmentProperties, IHttpSerializable
- Inheritance
-
Base64AttachmentProperties
- Implements
- Inherited Members
Constructors
Base64AttachmentProperties(string, Stream)
public Base64AttachmentProperties(string fileName, Stream stream)
Parameters
fileNamestringName of the file (max 1024 characters for attachments sent by message, 2-30 characters for attachments used for sticker creation).
streamStreamContent of the file encoded in Base64.
Methods
Serialize()
Serializes the object or its part into HttpContent.
public override HttpContent Serialize()
Returns
WithDescription(string?)
Description for the file (max 1024 characters for attachments sent by message, max 200 characters for attachments used for sticker creation).
public Base64AttachmentProperties WithDescription(string? description)
Parameters
descriptionstring
Returns
WithFileName(string)
Name of the file (max 1024 characters for attachments sent by message, 2-30 characters for attachments used for sticker creation).
public Base64AttachmentProperties WithFileName(string fileName)
Parameters
fileNamestring
Returns
WithTitle(string?)
Title of the attachment.
public Base64AttachmentProperties WithTitle(string? title)
Parameters
titlestring