Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto reference

contacts.getTopPeers

Get most used peers

NameTypeRequiredDescription
correspondentstrueNoUsers we've chatted most frequently with
bots_pmtrueNoMost used bots
bots_inlinetrueNoMost used inline bots
phone_callstrueNoMost frequently called users
forward_userstrueNoUsers to which the users often forwards messages to
forward_chatstrueNoChats to which the users often forwards messages to
groupstrueNoOften-opened groups and supergroups
channelstrueNoMost frequently visited channels
bots_apptrueNoMost frequently used [Main Mini Bot Apps](https://core.telegram.org/api/bots/webapps.md#main-mini-apps).
bots_guestchattrueNoMost frequently used [guest bots »](https://core.telegram.org/api/bots/guest-mode.md)
offsetintYesOffset for [pagination](https://core.telegram.org/api/offsets.md)
limitintYesMaximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)
hashlongYes[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation)

Responses

contacts.TopPeers

MTProto RPC

  • 400 · TYPES_EMPTY — No top peer type was provided.

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.