Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto guide

messages.getSavedHistory

Fetch saved messages » forwarded from a specific peer, or fetch messages from a monoforum topic ».

Fetch [saved messages »](https://core.telegram.org/api/saved-messages.md) forwarded from a specific peer, or fetch messages from a [monoforum topic »](https://core.telegram.org/api/monoforum.md).

NameTypeRequiredDescription
parent_peerInputPeerNoIf set, fetches messages from the specified monoforum, otherwise fetches from saved messages.
peerInputPeerYesTarget peer (or topic)
offset_idintYesOnly return messages starting from the specified message ID
offset_dateintYesOnly return messages sent before the specified date
add_offsetintYesNumber of list elements to be skipped, negative values are also accepted.
limitintYesNumber of results to return
max_idintYesIf a positive value was transferred, the method will return only messages with IDs less than **max_id**
min_idintYesIf a positive value was transferred, the method will return only messages with IDs more than **min_id**
hashlongYes[Result hash](https://core.telegram.org/api/offsets.md)

Replies

messages.Messages

MTProto RPC

  • 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
  • 400 · PARENT_PEER_INVALID — The specified parent_peer is invalid.
  • 400 · PEER_ID_INVALID — The provided peer id is invalid.

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.