Class SendFileMultipart
Represents a file to be sent via multipart upload (a file that is present on your device)
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types.Upload
Assembly: TelegramBotApi.dll
Syntax
public class SendFileMultipart : SendFile
Constructors
| Improve this Doc View SourceSendFileMultipart(Stream, String)
Initializes a new instance of the SendFileMultipart class
Declaration
public SendFileMultipart(Stream fileStream, string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | fileStream | The stream of the file to send |
System.String | fileName | The name of the file to send |
SendFileMultipart(String, String)
Initializes a new instance of the SendFileMultipart class
Declaration
public SendFileMultipart(string path, string fileName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path of the file to send |
System.String | fileName | The name of the file to send |
Properties
| Improve this Doc View SourceFileName
The file name
Declaration
public string FileName { get; }
Property Value
Type | Description |
---|---|
System.String |
FileStream
The file stream associated with this file, if any
Declaration
public Stream FileStream { get; }
Property Value
Type | Description |
---|---|
System.IO.Stream |
Path
The path associated with this file, if any
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
This file is to be sent via multipart/form data
Declaration
public override SendFileType Type { get; }
Property Value
Type | Description |
---|---|
SendFileType |