Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SecureFile

Hierarchy

Index

Properties

CONSTRUCTOR_ID: number
SUBCLASS_OF_ID: number
className: string
classType: "constructor" | "request"
originalArgs: { id: BigInteger; accessHash: BigInteger; size: BigInteger; dcId: number; date: number; fileHash: Buffer; secret: Buffer }

Type declaration

  • id: BigInteger
  • accessHash: BigInteger
  • size: BigInteger
  • dcId: number
  • date: number
  • fileHash: Buffer
  • secret: Buffer
CONSTRUCTOR_ID: 2097791614
SUBCLASS_OF_ID: 1572395975
classType: "constructor"
className: "SecureFile"
id: BigInteger
accessHash: BigInteger
size: BigInteger
dcId: number
date: number
fileHash: Buffer
secret: Buffer

Methods

  • serializeBytes(data: string | Buffer): Buffer
  • serializeDate(date: number | Date): Buffer
  • getBytes(): Buffer
  • toJSON(): { id: BigInteger; accessHash: BigInteger; size: BigInteger; dcId: number; date: number; fileHash: Buffer; secret: Buffer }
  • Returns { id: BigInteger; accessHash: BigInteger; size: BigInteger; dcId: number; date: number; fileHash: Buffer; secret: Buffer }

    • id: BigInteger
    • accessHash: BigInteger
    • size: BigInteger
    • dcId: number
    • date: number
    • fileHash: Buffer
    • secret: Buffer

Constructors

  • new SecureFile(args: { id: BigInteger; accessHash: BigInteger; size: BigInteger; dcId: number; date: number; fileHash: Buffer; secret: Buffer }): SecureFile
  • Parameters

    • args: { id: BigInteger; accessHash: BigInteger; size: BigInteger; dcId: number; date: number; fileHash: Buffer; secret: Buffer }
      • id: BigInteger
      • accessHash: BigInteger
      • size: BigInteger
      • dcId: number
      • date: number
      • fileHash: Buffer
      • secret: Buffer

    Returns SecureFile

Generated using TypeDoc