Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.

Hierarchy

Index

Properties

caption

caption: string

Caption of the document to be sent, 0-200 characters.

Optional description

description: string

Short description of the result.

document_url

document_url: string

A valid URL for the file.

id

id: string

Unique identifier for this result, 1-64 bytes.

Optional input_message_content

input_message_content: IInputMessageContent

Content of the message to be sent instead of the file.

mime_type

mime_type: string

Mime type of the content of the file, either “application/pdf” or “application/zip”.

Optional reply_markup

reply_markup: IInlineKeyboardMarkup

Inline keyboard attached to the message.

Optional thumb_height

thumb_height: number

Thumbnail height.

Optional thumb_url

thumb_url: string

URL of the thumbnail (jpeg only) for the file.

Optional thumb_width

thumb_width: number

Thumbnail width.

title

title: string

Title for the result

type

type: string

Type of the result, must be document.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc