InputStoryContentVideo

Raw MD
Describes a video to post as a story

Describes a video to post as a story.

Fields

FieldTypeRequiredDescription
typeStringAlwaysType of the content, must be video
videoStringAlwaysThe video to post as a story. The video must be of the size 720x1280, streamable, encoded with H.265 codec, with key frames added each second in the MPEG4 format, and must not exceed 30 MB. The video can't be reused and can only be uploaded as a new file, so you can pass "attach://<file_attach_name>" if the video was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »
durationFloatOptionalPrecise duration of the video in seconds; 0-60
cover_frame_timestampFloatOptionalTimestamp in seconds of the frame that will be used as the static cover for the story. Defaults to 0.0.
is_animationBooleanOptionalPass True if the video has no sound
Botlify Cloud Runtime
Credentials are auto-injected in .env — always load them with getenv(): BOT_TOKEN, ADMIN_CHAT_ID, BOT_USERNAME. Main database: database.db (SQLite, WAL mode). Runtime errors: error.log. Quick test: send to $ADMIN_CHAT_ID. Full details: Runtime Reference.