Class SendFileAttach
A file to send as attached multipart/form data
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 SendFileAttach : SendFile
Constructors
| Improve this Doc View SourceSendFileAttach(Stream)
Initializes a new instance of the SendFileAttach class
Declaration
public SendFileAttach(Stream fileStream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | fileStream | The file stream of the file to upload |
SendFileAttach(String)
Initializes a new instance of the SendFileAttach class
Declaration
public SendFileAttach(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | The path of the file to upload |
Properties
| Improve this Doc View SourceFileStream
The file stream of this file
Declaration
public Stream FileStream { get; }
Property Value
Type | Description |
---|---|
System.IO.Stream |
Type
This is an attached media for media groups.
Declaration
public override SendFileType Type { get; }
Property Value
Type | Description |
---|---|
SendFileType |