Show / Hide Table of Contents

Class SendFileMultipart

Represents a file to be sent via multipart upload (a file that is present on your device)

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

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

| Improve this Doc View Source

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 Source

FileName

The file name

Declaration
public string FileName { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

FileStream

The file stream associated with this file, if any

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

Path

The path associated with this file, if any

Declaration
public string Path { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Type

This file is to be sent via multipart/form data

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