Class PassportFile
This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.
Inheritance
System.Object
PassportFile
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.TelegramPassport
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class PassportFile
Properties
| Improve this Doc View SourceDate
Unix time when the file was uploaded
Declaration
public DateTime Date { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
FileId
Unique identifier for this file
Declaration
[JsonProperty(PropertyName = "file_id", Required = Required.Always)]
public string FileId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FileSize
File size
Declaration
[JsonProperty(PropertyName = "file_size", Required = Required.Always)]
public int FileSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |