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

MTProto reference

messages.searchGlobal

Search for messages and peers globally

名前型必須説明
broadcasts_onlytrueいいえIf set, only returns results from channels (used in the [global channel search tab »](https://core.telegram.org/api/search.md#global-search)).
groups_onlytrueいいえWhether to search only in groups
users_onlytrueいいえWhether to search only in private chats
folder_idintいいえ[ピアフォルダーID、詳細についてはここをクリック](https://core.telegram.org/api/folders.md#peer-folders)
communityInputChannelいいえTL Type: InputChannel.
qstringはいQuery
filterMessagesFilterはいGlobal search filter
min_dateintはいIf a positive value was specified, the method will return only messages with date bigger than min_date
max_dateintはいIf a positive value was transferred, the method will return only messages with date smaller than max_date
offset_rateintはいInitially 0, then set to the [`next_rate` parameter of messages.messagesSlice](https://core.telegram.org/constructor/messages.messagesSlice.md), or if that is absent, the `date` of the last returned message.
offset_peerInputPeerはい[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)
offset_idintはい[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)
limitintはい[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)

レスポンス

messages.Messages

MTProto RPC

  • 400 · FOLDER_ID_INVALID — Invalid folder ID.
  • 400 · INPUT_FILTER_INVALID — The specified filter is invalid.
  • 400 · SEARCH_QUERY_EMPTY — The search query is empty.

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.