Telegram MTProto
TL-Schicht 236899 MethodenOpenAPI 3.0.3

MTProto-Referenz

messages.setBotGuestChatResult

Bots können diese Methode verwenden, um eine Anfrage im Gastmodus zu beantworten, die über ein updateBotGuestChatQuery-Update empfangen wurde, und die Nachricht bereitzustellen, die als Gast im Chat gepostet werden soll. Weitere Informationen finden Sie hier ».

Bots können diese Methode verwenden, um eine [Gastmodus »](https://core.telegram.org/api/bots/guest-mode.md)-Anfrage zu beantworten, die über ein [updateBotGuestChatQuery](https://core.telegram.org/constructor/updateBotGuestChatQuery.md)-Update empfangen wurde, und die Nachricht bereitzustellen, die als Gast im Chat gepostet werden soll. Weitere Informationen finden Sie [hier »](https://core.telegram.org/api/bots/guest-mode.md#handling-guest-queries-bot-side)].

NameTypErforderlichBeschreibung
query_idlongJaQuery identifier from the [updateBotGuestChatQuery](https://core.telegram.org/constructor/updateBotGuestChatQuery.md).`query_id` field
resultInputBotInlineResultJaThe result to send as the answer to the query

Antworten

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 — Diese Methode kann nur von einem Bot aufgerufen werden.

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.