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

MTProto reference

messages.setBotGuestChatResult

Bots may use this method to answer a guest mode » query received via an updateBotGuestChatQuery update, providing the message to post into the chat as a guest, see here » for more info.

Bots may use this method to answer a [guest mode »](https://core.telegram.org/api/bots/guest-mode.md) query received via an [updateBotGuestChatQuery](https://core.telegram.org/constructor/updateBotGuestChatQuery.md) update, providing the message to post into the chat as a guest, see [here »](https://core.telegram.org/api/bots/guest-mode.md#handling-guest-queries-bot-side) for more info.

名前型必須説明
query_idlongはいQuery identifier from the [updateBotGuestChatQuery](https://core.telegram.org/constructor/updateBotGuestChatQuery.md).`query_id` field
resultInputBotInlineResultはいThe result to send as the answer to the query

レスポンス

InputBotInlineMessageID

MTProto RPC

  • 403 · USER_BOT_INVALID — User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts.
  • 400 · USER_BOT_REQUIRED — This method can only be called by a bot.

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.