GramIO API Reference / gramio/dist / TelegramInputMediaLivePhoto
Interface: TelegramInputMediaLivePhoto
Defined in: @gramio/types/out/objects.d.ts:6468
Represents a live photo to be sent.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
caption? | string | { toString: string; } | Optional. Caption of the live photo to be sent, 0-1024 characters after entities parsing | @gramio/types/out/objects.d.ts:6484 |
caption_entities? | TelegramMessageEntity[] | Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode | @gramio/types/out/objects.d.ts:6492 |
has_spoiler? | boolean | Optional. Pass True if the live photo needs to be covered with a spoiler animation | @gramio/types/out/objects.d.ts:6500 |
media | string | Blob | Video of the live photo to send. Pass a file_id to send a file that exists on the Telegram servers (recommended) or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files ». Sending live photos by a URL is currently unsupported. | @gramio/types/out/objects.d.ts:6476 |
parse_mode? | "HTML" | "MarkdownV2" | "Markdown" | Optional. Mode for parsing entities in the live photo caption. See formatting options for more details. | @gramio/types/out/objects.d.ts:6488 |
photo | string | Blob | The static photo to send. Pass a file_id to send a file that exists on the Telegram servers (recommended) or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files ». Sending live photos by a URL is currently unsupported. | @gramio/types/out/objects.d.ts:6480 |
show_caption_above_media? | boolean | Optional. Pass True if the caption must be shown above the message media | @gramio/types/out/objects.d.ts:6496 |
type | "live_photo" | Type of the media, must be live_photo | @gramio/types/out/objects.d.ts:6472 |