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 SourceFileId
Unique identifier for this file
Declaration
[JsonProperty(PropertyName = "file_id")]
public string FileId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 |
FileSize
File size, if known
Declaration
[JsonProperty(PropertyName = "file_size")]
public int FileSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |