Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto reference

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.

NameTypeRequiredDescription
write_allowedtrueNoSet 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.
compacttrueNoIf 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`.
fullscreentrueNoIf 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`.
peerInputPeerYesIf 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.
appInputBotAppYesThe 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_paramstringNoIf 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_paramsDataJSONNo[Theme parameters »](https://core.telegram.org/api/bots/webapps.md#theme-parameters)
platformstringYesShort name of the application; 0-64 English letters, digits, and underscores

Responses

WebViewResult

MTProto RPC

  • 400 · BOT_APP_BOT_INVALID — The bot_id passed in the inputBotAppShortName constructor is invalid.
  • 400 · BOT_APP_INVALID — The specified bot app is invalid.
  • 400 · BOT_APP_SHORTNAME_INVALID — The specified bot app short name is invalid.
  • 400 · MSG_ID_INVALID — Invalid message ID provided.
  • 400 · THEME_PARAMS_INVALID — The specified theme_params field 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.