Skip to content

GramIO API Reference / @gramio/contexts/dist / EncryptedCredentials

Class: EncryptedCredentials

Defined in: contexts/index.d.ts:2067

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

Constructors

Constructor

new EncryptedCredentials(payload): EncryptedCredentials

Defined in: contexts/index.d.ts:2069

Parameters

ParameterType
payloadTelegramEncryptedCredentials

Returns

EncryptedCredentials

Properties

PropertyTypeDefined in
payloadTelegramEncryptedCredentialscontexts/index.d.ts:2068

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

Defined in: contexts/index.d.ts:2071

MDN

Returns

string


data

Get Signature

get data(): string

Defined in: contexts/index.d.ts:2077

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

Returns

string


hash

Get Signature

get hash(): string

Defined in: contexts/index.d.ts:2079

Base64-encoded data hash for data authentication

Returns

string


secret

Get Signature

get secret(): string

Defined in: contexts/index.d.ts:2084

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

Returns

string