Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grm/src/tl/mod.ts>Api.Document

MTProto API Client for Deno 🦕
Go to Latest
class Api.Document
extends VirtualClass<{ id: long; accessHash: long; fileReference: bytes; date: int; mimeType: string; size: long; thumbs?: Api.TypePhotoSize[]; videoThumbs?: Api.TypeVideoSize[]; dcId: int; attributes: Api.TypeDocumentAttribute[]; }>
import { Api } from "https://deno.land/x/grm@0.5.1/src/tl/mod.ts";
const { Document } = Api;

Properties

accessHash: long
attributes: Api.TypeDocumentAttribute[]
className: "Document"
classType: "constructor"
CONSTRUCTOR_ID: 2413085912
date: int
dcId: int
fileReference: bytes
id: long
mimeType: string
size: long
SUBCLASS_OF_ID: 555739168
optional
thumbs: Api.TypePhotoSize[]
optional
videoThumbs: Api.TypeVideoSize[]

Static Methods

fromReader(reader: Reader): Document