Show / Hide Table of Contents

Class SendFileAttach

A file to send as attached multipart/form data

Inheritance
System.Object
SendFile
SendFileAttach
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 Source

SendFileAttach(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

| Improve this Doc View Source

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 Source

FileStream

The file stream of this file

Declaration
public Stream FileStream { get; }
Property Value
Type Description
System.IO.Stream
| Improve this Doc View Source

Type

This is an attached media for media groups.

Declaration
public override SendFileType Type { get; }
Property Value
Type Description
SendFileType
Overrides
SendFile.Type
  • Improve this Doc
  • View Source
Back to top Generated by DocFX