Telegram MTProto
TL-Schicht 236899 MethodenOpenAPI 3.0.3

MTProto-Referenz

messages.requestAppWebView

Open a bot mini app from a direct Mini App deep link, sending over user information after user confirmation.

Open a [bot mini app](https://core.telegram.org/bots/webapps.md) from a [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links), sending over user information after user confirmation.

NameTypErforderlichBeschreibung
write_allowedtrueNeinSet this flag if the bot is asking permission to send messages to the user as specified in the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) docs, and the user agreed.
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 [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) is equal to `compact`.
fullscreentrueNeinIf set, requests to open the mini app in fullscreen mode (as opposed to compact or normal mode). Must be set if the `mode` parameter of the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) is equal to `fullscreen`.
peerInputPeerJaIf the client has clicked on the link in a Telegram chat, pass the chat's peer information; otherwise pass the bot's peer information, instead.
appInputBotAppJaThe app obtained by invoking [messages.getBotApp](https://core.telegram.org/method/messages.getBotApp.md) as specified in the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) docs.
start_paramstringNeinIf the `startapp` query string parameter is present in the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links), pass it to `start_param`.
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

Antworten

WebViewResult

MTProto RPC

  • 400 · BOT_APP_BOT_INVALID – Die im inputBotAppShortName-Konstruktor übergebene bot_id ist ungültig.
  • 400 · BOT_APP_INVALID – Die angegebene Bot-App ist ungültig.
  • 400 · BOT_APP_SHORTNAME_INVALID – Der angegebene Kurzname der Bot-App ist ungültig.
  • 400 · MSG_ID_INVALID – Ungültige Nachrichten-ID angegeben.
  • 400 · THEME_PARAMS_INVALID – Das angegebene theme_params-Feld 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.