Skip to content

InputMediaLivePhoto

Represents a live photo to be sent.

Fields

typeString = live_photoRequired
Type of the result, must be live\_photo
mediaInputFileStringRequired📎 Files
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://attach\name>" to upload a new one using multipart/form-data under attach\_name> name. More information on Sending Files ». Sending live photos by a URL is currently unsupported.
photoInputFileStringRequired📎 Files
The static photo to send. Pass a file\id to send a file that exists on the Telegram servers (recommended) or pass "attach://attach\name>" to upload a new one using multipart/form-data under attach\_name> name. More information on Sending Files ». Sending live photos by a URL is currently unsupported.
captionStringOptional✏️ FormattableminLen 0maxLen 1024
Optional. Caption of the live photo to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional
Optional. Mode for parsing entities in the live photo caption. See formatting options for more details.
caption_entitiesMessageEntity[]Optional
Optional. List of special entities that appear in the caption, which can be specified instead of parse\_mode
show_caption_above_mediaBooleanOptional
Optional. Pass True, if the caption must be shown above the message media
has_spoilerBooleanOptional
Optional. Pass True if the live photo needs to be covered with a spoiler animation

GramIO Usage

See Also