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

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

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

Properties

optional
fileName: string

The file name 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 photo.

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 photo 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.