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

MTProto reference

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).

名前型必須説明
parent_peerInputPeerいいえIf set, fetches messages from the specified monoforum, otherwise fetches from saved messages.
peerInputPeerはいTarget peer (or topic)
offset_idintはいOnly return messages starting from the specified message ID
offset_dateintはいOnly return messages sent before the specified date
add_offsetintはいNumber of list elements to be skipped, negative values are also accepted.
limitintはいNumber of results to return
max_idintはいIf a positive value was transferred, the method will return only messages with IDs less than **max_id**
min_idintはいIf a positive value was transferred, the method will return only messages with IDs more than **min_id**
hashlongはい[Result hash](https://core.telegram.org/api/offsets.md)

レスポンス

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.