Show / Hide Table of Contents

Class File

Represents a file ready to be downloaded. Valid for at least one hour.

Inheritance
System.Object
File
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
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class File

Properties

| Improve this Doc View Source

FileId

Unique identifier for this file

Declaration
[JsonProperty(PropertyName = "file_id")]
public string FileId { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

FilePath

File path. Use TelegramBot.DownloadFile(FilePath) to download the file.

Declaration
[JsonProperty(PropertyName = "file_path")]
public string FilePath { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

FileSize

File size, if known

Declaration
[JsonProperty(PropertyName = "file_size")]
public int FileSize { get; set; }
Property Value
Type Description
System.Int32
  • Improve this Doc
  • View Source
Back to top Generated by DocFX