Telegram MTProto
TL-Schicht 236899 MethodenOpenAPI 3.0.3

MTProto-Referenz

channels.searchPosts

Globally search for posts from public channels » (*including* those we aren't a member of) containing either a specific hashtag, *or* a full text query.

Globally search for posts from public [channels »](https://core.telegram.org/api/channel.md) (*including* those we aren't a member of) containing either a specific hashtag, *or* a full text query.

NameTypErforderlichBeschreibung
hashtagstringNeinThe hashtag to search, without the `#` character.
querystringNeinThe full text query: each user has a limited amount of free full text search slots, after which payment is required, see [here »](https://core.telegram.org/api/search.md#posts-tab) for more info on the full flow.
offset_rateintJaInitially 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_peerInputPeerJa[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)
offset_idintJa[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)
limitintJaMaximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)
allow_paid_starslongNeinFor full text post searches (`query`), allows payment of the specified amount of Stars for the search, see [here »](https://core.telegram.org/api/search.md#posts-tab) for more info on the full flow.

Antworten

messages.Messages

MTProto RPC

  • 420 · FROZEN_METHOD_INVALID – Das aktuelle Konto ist [eingefroren](https://core.telegram.org/api/auth.md#frozen-accounts) und kann daher die angegebene Aktion nicht ausführen.
  • 400 · OFFSET_PEER_ID_INVALID – Der angegebene Offset-Peer ist ungültig.
  • 403 · PREMIUM_ACCOUNT_REQUIRED — A premium account is required to execute this action.

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.