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

x/mtkruto/client/3_types.ts>SendDocumentParams

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface SendDocumentParams
import { type SendDocumentParams } from "https://deno.land/x/mtkruto@0.1.130/client/3_types.ts";

Properties

optional
fileName: string

The file name to assign.

optional
mimeType: string

The mime type to assign.

optional
chunkSize: number

Size of each upload chunk in bytes.

optional
signal: AbortSignal | null

Upload abort signal.

optional
caption: string

The caption of the document.

optional
captionEntities: MessageEntity[]

The caption's entities.

optional
parseMode: ParseMode

The parse mode to use for the caption. If not provided, the default parse mode will be used.

optional
hasSpoiler: boolean

Whether to mark the document as a spoiler.

optional
disableNotification: boolean

Whether to send the message in a silent way without making a sound on the recipients' clients.

optional
protectContent: boolean

Whether to protect the contents of the message from copying and forwarding.

optional
replyToMessageId: number

The identifier of a message to reply to.

optional
messageThreadId: number

The identifier of a thread to send the message to.

optional
sendAs: ChatID

The identifier of the chat to send the message on behalf of. User-only.

The reply markup of the message. Bot-only.