stories.sendStory
Uploads a Telegram Story.
Uploads a [Telegram Story](https://core.telegram.org/api/stories.md).
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
pinned | true | Nein | Whether to add the story to the profile automatically upon expiration. If not set, the story will only be added to the archive, see [here »](https://core.telegram.org/api/stories.md) for more info. |
noforwards | true | Nein | If set, disables forwards, screenshots, and downloads. |
fwd_modified | true | Nein | Set this flag when reposting stories with `fwd_from_id`+`fwd_from_story`, if the `media` was modified before reposting. |
peer | InputPeer | Ja | The peer to send the story as. |
media | InputMedia | Ja | The story media. |
media_areas | Vector<MediaArea> | Nein | [Media areas](https://core.telegram.org/api/stories.md#media-areas) associated to the story, see [here »](https://core.telegram.org/api/stories.md#media-areas) for more info. |
caption | string | Nein | Story caption. |
entities | Vector<MessageEntity> | Nein | [Message entities for styled text](https://core.telegram.org/api/entities.md), if allowed by the [`stories_entities` client configuration parameter »](https://core.telegram.org/api/config.md#stories-entities). |
privacy_rules | Vector<InputPrivacyRule> | Ja | [Privacy rules](https://core.telegram.org/api/privacy.md) for the story, indicating who can or can't view the story. |
random_id | long | Ja | Unique client message ID required to prevent message resending. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |
period | int | Nein | 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. |
fwd_from_id | InputPeer | Nein | If set, indicates that this story is a repost of story with ID `fwd_from_story` posted by the peer in `fwd_from_id`. |
fwd_from_story | int | Nein | If set, indicates that this story is a repost of story with ID `fwd_from_story` posted by the peer in `fwd_from_id`. |
albums | Vector<int> | Nein | If set, adds the story to the specified albums. |
music | InputDocument | Nein | If set, the audio track to play as background music for the story. |
Antworten
Updates
MTProto RPC
- 400 · BOOSTS_REQUIRED – Der angegebene Kanal muss zuerst [von seinen Benutzern geboostet werden](https://core.telegram.org/api/boost.md), um diese Aktion auszuführen.
- 403 · BOT_ACCESS_FORBIDDEN – Die angegebene Methode *kann* für einige Vorgänge über eine [Geschäftsverbindung](https://core.telegram.org/api/bots/connected-business-bots.md)] verwendet werden, aber die angegebene Abfrage hat einen Vorgang versucht, der über eine Geschäftsverbindung nicht zulässig ist.
- 400 · CHANNEL_INVALID – Der angegebene Kanal ist ungültig.
- 400 · CHAT_ADMIN_REQUIRED — Um dies zu tun, müssen Sie in diesem Chat Administrator sein.
- 400 · IMAGE_PROCESS_FAILED – Fehler bei der Bildverarbeitung.
- 400 · MEDIA_CAPTION_TOO_LONG – Die Beschriftung ist zu lang.
- 400 · MEDIA_EMPTY – Das bereitgestellte Medienobjekt ist ungültig.
- 400 · MEDIA_FILE_INVALID – Die angegebene Mediendatei ist ungültig.
- 400 · MEDIA_TYPE_INVALID – Der angegebene Medientyp kann nicht in Storys verwendet werden.
- 400 · MEDIA_VIDEO_STORY_MISSING – Ein Nicht-Story-Video kann nicht als Story erneut veröffentlicht werden (wird ausgegeben, wenn versucht wird, ein Nicht-Story-Video mithilfe von inputDocument erneut als Story zu senden).
- 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.
- 400 · PHOTO_INVALID_DIMENSIONS – Die Fotoabmessungen sind ungültig.
- 400 · PREMIUM_ACCOUNT_REQUIRED — Zum Ausführen dieser Aktion ist ein Premium-Konto erforderlich.
- 400 · REACTION_INVALID — Die angegebene Reaktion ist ungültig.
- 400 · STORIES_TOO_MUCH – Sie haben die maximale Anzahl aktiver Storys erreicht, die in den [story_expiring_limit_* Client-Konfigurationsparametern](https://core.telegram.org/api/config.md#story-expiring-limit-default) festgelegt ist: Sie sollten ein [Premium](https://core.telegram.org/api/premium.md)-Abonnement kaufen, eine aktive Story löschen oder warten, bis die älteste Story abläuft.
- 400 · STORY_PERIOD_INVALID — Der angegebene Story-Zeitraum ist für dieses Konto ungültig.
- 400 · VENUE_ID_INVALID – Die angegebene Veranstaltungsort-ID ist ungültig.
- 400 · VIDEO_DURATION_INVALID – Die Dauer des angegebenen Videos ist ungültig.