Class GoogleCloudPlatformAttachmentProperties
public class GoogleCloudPlatformAttachmentProperties : AttachmentProperties, IHttpSerializable
- Inheritance
-
GoogleCloudPlatformAttachmentProperties
- Implements
- Inherited Members
Constructors
GoogleCloudPlatformAttachmentProperties(string, string)
public GoogleCloudPlatformAttachmentProperties(string fileName, string uploadedFileName)
Parameters
fileName
stringName of the file (max 1024 characters for attachments sent by message, 2-30 characters for attachments used for sticker creation).
uploadedFileName
stringName of the upload.
Properties
SupportsHttpSerialization
public override bool SupportsHttpSerialization { get; }
Property Value
UploadedFileName
Name of the upload.
public string UploadedFileName { get; set; }
Property Value
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 GoogleCloudPlatformAttachmentProperties WithDescription(string? description)
Parameters
description
string
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 GoogleCloudPlatformAttachmentProperties WithFileName(string fileName)
Parameters
fileName
string
Returns
WithTitle(string?)
Title of the attachment.
public GoogleCloudPlatformAttachmentProperties WithTitle(string? title)
Parameters
title
string
Returns
WithUploadedFileName(string)
Name of the upload.
public GoogleCloudPlatformAttachmentProperties WithUploadedFileName(string uploadedFileName)
Parameters
uploadedFileName
string