EncryptedCredentials
Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.
fields
| field | type | required | description |
|---|---|---|---|
data | string | required | Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication |
hash | string | required | Base64-encoded data hash for data authentication |
secret | string | required | Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption |
import
import type { EncryptedCredentials } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#encryptedcredentials