class Telegram::API::EncryptedCredentials

Overview

Contains data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.

Defined in:

telegram/api/generated/types.cr

Constructors

Instance Method Summary

Instance methods inherited from class Telegram::API::Type

==(other) ==, client client

Constructor methods inherited from class Telegram::API::Type

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(data : String, hash : String, secret : String) #

[View source]
def self.new(pull : JSON::PullParser) #

Contains data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.


[View source]

Instance Method Detail

def data : String #

Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication


[View source]
def data=(data : String) #

Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication


[View source]
def hash : String #

Base64-encoded data hash for data authentication


[View source]
def hash=(hash : String) #

Base64-encoded data hash for data authentication


[View source]
def secret : String #

Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption


[View source]
def secret=(secret : String) #

Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption


[View source]