Telegram MTProto
TL-Schicht 236899 MethodenOpenAPI 3.0.3

MTProto-Referenz

messages.requestWebView

Open a bot mini app, sending over user information after user confirmation.

Open a [bot mini app](https://core.telegram.org/bots/webapps.md), sending over user information after user confirmation.

NameTypErforderlichBeschreibung
from_bot_menutrueNeinWhether the webview was opened by clicking on the bot's [menu button »](https://core.telegram.org/api/bots/menu.md).
silenttrueNeinWhether the inline message that will be sent by the bot on behalf of the user once the web app interaction is [terminated](https://core.telegram.org/method/messages.sendWebViewResultMessage.md) should be sent silently (no notifications for the receivers).
compacttrueNeinIf set, requests to open the mini app in compact mode (as opposed to normal or fullscreen mode). Must be set if the `mode` parameter of the [attachment menu deep link](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links) is equal to `compact`.
fullscreentrueNeinIf set, requests to open the mini app in fullscreen mode (as opposed to normal or compact mode). Must be set if the `mode` parameter of the [attachment menu deep link](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links) is equal to `fullscreen`.
peerInputPeerJaDialog where the web app is being opened, and where the resulting message will be sent (see the [docs for more info »](https://core.telegram.org/api/bots/webapps.md)).
botInputUserJaBot that owns the [web app](https://core.telegram.org/api/bots/webapps.md)
urlstringNein[Web app URL](https://core.telegram.org/api/bots/webapps.md)
start_paramstringNeinIf the web app was opened from the attachment menu using a [attachment menu deep link](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links), `start_param` should contain the `data` from the `startattach` parameter.
theme_paramsDataJSONNein[Theme parameters »](https://core.telegram.org/api/bots/webapps.md#theme-parameters)
platformstringJaShort name of the application; 0-64 English letters, digits, and underscores
reply_toInputReplyToNeinIf set, indicates that the inline message that will be sent by the bot on behalf of the user once the web app interaction is [terminated](https://core.telegram.org/method/messages.sendWebViewResultMessage.md) should be sent in reply to the specified message or story.
send_asInputPeerNeinOpen the web app as the specified peer, sending the resulting the message as the specified peer.

Antworten

WebViewResult

MTProto RPC

  • 400 · BOT_INVALID – Dies ist kein gültiger Bot.
  • 400 · BOT_WEBVIEW_DISABLED – Eine Webansicht kann unter den angegebenen Bedingungen nicht geöffnet werden: Wird beispielsweise ausgegeben, wenn from_bot_menu oder url festgelegt sind und peer nicht der Chat mit dem Bot ist.
  • 403 · CHAT_WRITE_FORBIDDEN — Sie können in diesem Chat nicht schreiben.
  • 400 · INPUT_USER_DEACTIVATED – Der angegebene Benutzer wurde gelöscht.
  • 400 · MSG_ID_INVALID – Ungültige Nachrichten-ID angegeben.
  • 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.
  • 403 · PRIVACY_PREMIUM_REQUIRED — You need a [Telegram Premium subscription](https://core.telegram.org/api/premium.md) to send a message to this user.
  • 400 · SEND_AS_PEER_INVALID – Sie können als angegebener Peer keine Nachrichten senden.
  • 400 · THEME_PARAMS_INVALID – Das angegebene theme_params-Feld ist ungültig.
  • 400 · URL_INVALID — Invalid URL provided.
  • 400 · YOU_BLOCKED_USER — Sie haben diesen Benutzer blockiert.

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.