From 8f0807cd42d0529c0c173725e62a5a3d62570fee Mon Sep 17 00:00:00 2001
From: GitHub Action Use messages.editMessage to edit or replace a media file sent using messages.sendMedia and messages.sendMultiMedia. If one wishes to edit only the If one wishes to edit any other attribute (for example, the file name specified in documentAttributeFilename, any other DocumentAttribute or any flag different from The only exception to this rule is when editing the documentAttributeVideo. The only exception to this rule is when editing the documentAttributeVideo. The API also supports streamed uploads, in cases where the length of the file is not known before starting the upload. This is useful for example when converting a video, to avoid buffering the entire converted video on the filesystem, each part is uploaded immediately as soon as it is produced by the encoder. spoiler
, ttl_seconds
or query
attributes of the media, this may be done without reuploading the entire media file, by simply passing the old media to the id
parameter of inputMediaPhoto, inputMediaDocument and updating the values of the spoiler
/ttl_seconds
/query
attributes as needed. spoiler
/ttl_seconds
/query
) a full reupload of the file is required, in order to be able to specify the new attributes in inputMediaUploadedPhoto/inputMediaUploadedDocument. video_start_ts
attribute of video stories, in which case inputMediaDocument may still be used with inputFileStoryDocument instead of inputFile without reuploading the entire story video, see here » for more info on the full flow.video_start_ts
attribute of video stories, in which case inputMediaDocument may still be used with inputFileStoryDocument instead of inputFile without reuploading the entire story video, see here » for more info on the full flow.Streamed uploads
peer
: The peer to send the story as.media
: The story media.media
: The story media (a vertical photo or a vertical video, max 30 MB).media_areas
: Media areas associated to the story, see here » for more info.privacy_rules
: A set of privacy rules » for the story as an array of InputPrivacyRule constructors, indicating who can or can't view the story.expire
: Period after which the story is moved to archive (and to the profile if pinned
is set), in seconds; must be one of 6 * 3600
, 12 * 3600
, 86400
, or 2 * 86400
for Telegram Premium users, and 86400
otherwise.