Class PassportData
This object contains information about Telegram Passport data shared with the bot by the user.
Inheritance
System.Object
PassportData
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 PassportData
Properties
| Improve this Doc View SourceCredentials
Encrypted credentials required to decrypt the data
Declaration
[JsonProperty(PropertyName = "credentials", Required = Required.Always)]
public EncryptedCredentials Credentials { get; set; }
Property Value
Type | Description |
---|---|
EncryptedCredentials |
Data
Array with information about documents and other Telegram Passport elements that was shared with the bot
Declaration
[JsonProperty(PropertyName = "data", Required = Required.Always)]
public EncryptedPassportElement[] Data { get; set; }
Property Value
Type | Description |
---|---|
EncryptedPassportElement[] |