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

x/mtkruto/tl/2_types.ts>SecureValue_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class SecureValue_
extends _SecureValue_
import { SecureValue_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Secure value

Constructors

new
SecureValue_(params: { type: enums.SecureValueType; data?: enums.SecureData; front_side?: enums.SecureFile; reverse_side?: enums.SecureFile; selfie?: enums.SecureFile; translation?: Array<enums.SecureFile>; files?: Array<enums.SecureFile>; plain_data?: enums.SecurePlainData; hash: Uint8Array; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
data: enums.SecureData

Encrypted Telegram Passport element data

optional
files: Array<enums.SecureFile>

Array of encrypted passport files with photos the of the documents

optional
front_side: enums.SecureFile

Encrypted passport file with the front side of the document

hash: Uint8Array

Data hash

optional
plain_data: enums.SecurePlainData

Plaintext verified passport data

optional
reverse_side: enums.SecureFile

Encrypted passport file with the reverse side of the document

optional
selfie: enums.SecureFile

Encrypted passport file with a selfie of the user holding the document

optional
translation: Array<enums.SecureFile>

Array of encrypted passport files with translated versions of the provided documents

type: enums.SecureValueType

Secure passport value type

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc