telegram-send-story
Publish a photo or video story to your Telegram profile or channel, with options to set privacy, caption, and story duration.
Instructions
Publish a new story (photo or video) to your profile or a channel you manage. Privacy: everyone/contacts/close_friends/selected (allowUserIds required for 'selected'). MediaAreas not supported in this version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Override auto-detected media type | |
| chatId | No | Peer to post the story to — 'me', @username, or numeric ID | me |
| period | No | Story lifetime in seconds: 21600=6h, 43200=12h, 86400=24h (default), 172800=48h | |
| pinned | No | Keep the story in the profile highlights after expiry | |
| caption | No | Story caption (max 2048 chars) | |
| privacy | No | Who can see the story | everyone |
| filePath | Yes | Absolute path to the photo or video file to upload | |
| parseMode | No | Caption parse mode: md or html | |
| noforwards | No | Prevent others from forwarding or saving the story | |
| allowUserIds | No | Required when privacy='selected': numeric user IDs allowed to see the story | |
| disallowUserIds | No | User IDs explicitly blocked from seeing the story (ignored for privacy='selected') |