Telegram MTProto
TL レイヤー 236899 件のメソッドOpenAPI 3.0.3

MTProto reference

stories.sendStory

Uploads a Telegram Story.

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

名前型必須説明
pinnedtrueいいえ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.
noforwardstrueいいえIf set, disables forwards, screenshots, and downloads.
fwd_modifiedtrueいいえSet this flag when reposting stories with `fwd_from_id`+`fwd_from_story`, if the `media` was modified before reposting.
peerInputPeerはいThe peer to send the story as.
mediaInputMediaはいThe story media.
media_areasVector<MediaArea>いいえ[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.
captionstringいいえStory caption.
entitiesVector<MessageEntity>いいえ[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>はい[Privacy rules](https://core.telegram.org/api/privacy.md) for the story, indicating who can or can't view the story.
random_idlongはい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.
periodintいいえ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_idInputPeerいいえ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_storyintいいえIf 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>いいえIf set, adds the story to the specified albums.
musicInputDocumentいいえIf set, the audio track to play as background music for the story.

レスポンス

Updates

MTProto RPC

  • 400 · BOOSTS_REQUIRED — The specified channel must first be [boosted by its users](https://core.telegram.org/api/boost.md) in order to perform this action.
  • 403 · BOT_ACCESS_FORBIDDEN — The specified method *can* be used over a [business connection](https://core.telegram.org/api/bots/connected-business-bots.md) for some operations, but the specified query attempted an operation that is not allowed over a business connection.
  • 400 · CHANNEL_INVALID — The provided channel is invalid.
  • 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
  • 400 · IMAGE_PROCESS_FAILED — Failure while processing image.
  • 400 · MEDIA_CAPTION_TOO_LONG — The caption is too long.
  • 400 · MEDIA_EMPTY — The provided media object is invalid.
  • 400 · MEDIA_FILE_INVALID — The specified media file is invalid.
  • 400 · MEDIA_TYPE_INVALID — The specified media type cannot be used in stories.
  • 400 · MEDIA_VIDEO_STORY_MISSING — A non-story video cannot be repubblished as a story (emitted when trying to resend a non-story video as a story using inputDocument).
  • 400 · PEER_ID_INVALID — The provided peer id is invalid.
  • 400 · PHOTO_INVALID_DIMENSIONS — The photo dimensions are invalid.
  • 400 · PREMIUM_ACCOUNT_REQUIRED — A premium account is required to execute this action.
  • 400 · REACTION_INVALID — The specified reaction is invalid.
  • 400 · STORIES_TOO_MUCH — You have hit the maximum active stories limit as specified by the [story_expiring_limit_* client configuration parameters](https://core.telegram.org/api/config.md#story-expiring-limit-default): you should buy a [Premium](https://core.telegram.org/api/premium.md) subscription, delete an active story, or wait for the oldest story to expire.
  • 400 · STORY_PERIOD_INVALID — The specified story period is invalid for this account.
  • 400 · VENUE_ID_INVALID — The specified venue ID is invalid.
  • 400 · VIDEO_DURATION_INVALID — The duration of the specified video is invalid.

Telegram documentation ↗

Пользователи 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.