Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MessageMediaDocument

Hierarchy

  • VirtualClass<{ nopremium?: boolean; spoiler?: boolean; video?: boolean; round?: boolean; voice?: boolean; document?: TypeDocument; altDocument?: TypeDocument; ttlSeconds?: int }>
    • MessageMediaDocument

Index

Properties

CONSTRUCTOR_ID: number
SUBCLASS_OF_ID: number
className: string
classType: "constructor" | "request"
originalArgs: { nopremium?: boolean; spoiler?: boolean; video?: boolean; round?: boolean; voice?: boolean; document?: TypeDocument; altDocument?: TypeDocument; ttlSeconds?: number }

Type declaration

  • Optional nopremium?: boolean
  • Optional spoiler?: boolean
  • Optional video?: boolean
  • Optional round?: boolean
  • Optional voice?: boolean
  • Optional document?: TypeDocument
  • Optional altDocument?: TypeDocument
  • Optional ttlSeconds?: number
CONSTRUCTOR_ID: 1291114285
SUBCLASS_OF_ID: 1198308914
classType: "constructor"
className: "MessageMediaDocument"
nopremium?: boolean
spoiler?: boolean
video?: boolean
round?: boolean
voice?: boolean
document?: TypeDocument
altDocument?: TypeDocument
ttlSeconds?: number

Methods

  • serializeBytes(data: string | Buffer): Buffer
  • serializeDate(date: number | Date): Buffer
  • getBytes(): Buffer
  • toJSON(): { nopremium?: boolean; spoiler?: boolean; video?: boolean; round?: boolean; voice?: boolean; document?: TypeDocument; altDocument?: TypeDocument; ttlSeconds?: number }
  • Returns { nopremium?: boolean; spoiler?: boolean; video?: boolean; round?: boolean; voice?: boolean; document?: TypeDocument; altDocument?: TypeDocument; ttlSeconds?: number }

    • Optional nopremium?: boolean
    • Optional spoiler?: boolean
    • Optional video?: boolean
    • Optional round?: boolean
    • Optional voice?: boolean
    • Optional document?: TypeDocument
    • Optional altDocument?: TypeDocument
    • Optional ttlSeconds?: number

Constructors

  • new MessageMediaDocument(args: { nopremium?: boolean; spoiler?: boolean; video?: boolean; round?: boolean; voice?: boolean; document?: TypeDocument; altDocument?: TypeDocument; ttlSeconds?: number }): MessageMediaDocument

Generated using TypeDoc