Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/grammy_types/passport.ts>EncryptedCredentials

Type declarations of the Telegram Bot API.
Very Popular
Go to Latest
interface EncryptedCredentials
import { type EncryptedCredentials } from "https://deno.land/x/grammy_types@v3.6.2/passport.ts";

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

Properties

data: string

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

hash: string

Base64-encoded data hash for data authentication

secret: string

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