Class EncryptedCredentials
Contains data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.
Inheritance
System.Object
EncryptedCredentials
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 EncryptedCredentials
Properties
| Improve this Doc View SourceData
Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication
Declaration
[JsonProperty(PropertyName = "data", Required = Required.Always)]
public string Data { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Hash
Base64-encoded data hash for data authentication
Declaration
[JsonProperty(PropertyName = "hash", Required = Required.Always)]
public string Hash { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Secret
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption
Declaration
[JsonProperty(PropertyName = "secret", Required = Required.Always)]
public string Secret { get; set; }
Property Value
Type | Description |
---|---|
System.String |