Telegram MTProto
طبقة TL 236عدد الطرق: 899OpenAPI 3.0.3

MTProto reference

stories.startLive

Start a live story, optionally using RTMP livestream mode, see here » for the full flow.

Start a live story, optionally using RTMP livestream mode, see [here »](https://core.telegram.org/api/group-calls.md#live-stories) for the full flow.

الاسمالنوعمطلوبالوصف
pinnedtrueلأWhether to pin the live story on the peer's profile
noforwardstrueلأWhether viewers must be prevented from forwarding or saving the live story
rtmp_streamtrueلأCreate the live story in [RTMP livestream mode »](https://core.telegram.org/api/group-calls.md#stream-mode), where one external streamer publishes all audio and video
peerInputPeerأيوهUser, supergroup or channel that will own the live story; basic groups cannot post live stories
captionstringلأLive story caption
entitiesVector<MessageEntity>لأ[كيانات الرسالة للنص المصمم](https://core.telegram.org/api/entities.md)
privacy_rulesVector<InputPrivacyRule>أيوهPrivacy rules defining who can view the live story
random_idlongأيوهClient-generated random ID used to prevent duplicate live stories. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.
messages_enabledBoolلأWhether the [in-call message overlay »](https://core.telegram.org/api/group-calls.md#in-call-messages) should be enabled
send_paid_messages_starslongلأMinimum Telegram Stars donation required from users other than the live story owner for each comment; the owner may always comment without donating, and `0` allows free comments for everyone

الردود

Updates

MTProto RPC

  • 400 · CHANNEL_MONOFORUM_UNSUPPORTED — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) do not support this feature.
  • 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
  • 400 · PEER_ID_INVALID — The provided peer id is invalid.
  • 400 · STORY_LIVE_ALREADY_%d — This peer already has an active live story, and its ID is equal to %d.

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.