Show / Hide Table of Contents

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 Source

Date

Unix time when the file was uploaded

Declaration
public DateTime Date { get; set; }
Property Value
Type Description
System.DateTime
| Improve this Doc View Source

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
| Improve this Doc View Source

FileSize

File size

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