Telegram MTProto
TL-Schicht 236899 MethodenOpenAPI 3.0.3

MTProto-Referenz

stories.sendStory

Uploads a Telegram Story.

Uploads a [Telegram Story](https://core.telegram.org/api/stories.md).

NameTypErforderlichBeschreibung
pinnedtrueNeinWhether 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.
noforwardstrueNeinIf set, disables forwards, screenshots, and downloads.
fwd_modifiedtrueNeinSet this flag when reposting stories with `fwd_from_id`+`fwd_from_story`, if the `media` was modified before reposting.
peerInputPeerJaThe peer to send the story as.
mediaInputMediaJaThe story media.
media_areasVector<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.
captionstringNeinStory caption.
entitiesVector<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_rulesVector<InputPrivacyRule>Ja[Privacy rules](https://core.telegram.org/api/privacy.md) for the story, indicating who can or can't view the story.
random_idlongJaUnique 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.
periodintNeinPeriod 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_idInputPeerNeinIf 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_storyintNeinIf set, indicates that this story is a repost of story with ID `fwd_from_story` posted by the peer in `fwd_from_id`.
albumsVector<int>NeinIf set, adds the story to the specified albums.
musicInputDocumentNeinIf 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.

Telegrammdokumentation ↗

Пользователи users.getFullUser
POST users.getFullUser

Получить подробный профиль пользователя

Возвращает расширенные сведения о пользователе. В ответе могут быть описание профиля и связанные пользователи или чаты.

ПользователиTL: users.getFullUserДоступен пользователям и ботам

Параметры запроса

Параметр
id
Тип
InputUser
Обязательный
Да
Описание
Пользователь, сведения о котором нужно получить.
Тип InputUser

Указывает пользователя для дальнейшего взаимодействия.

КонструкторПоляОписание
inputUseruser_id: longID пользователяaccess_hash: longЗначение access_hash из конструктора userУказывает пользователя для дальнейшего взаимодействия.
inputUserSelf—Текущий пользователь
inputUserFromMessagepeer: InputPeerЧат, в котором встретился пользовательmsg_id: intID сообщенияuser_id: longID пользователяПользователь с признаком min из конкретного сообщения чата
inputUserEmpty—Пустой конструктор, который не указывает пользователя

Авторизация Telegram

Сессия хранится в этой вкладке. Запрос выполняется напрямую к Telegram.