Telegram MTProto
TL-Schicht 236899 MethodenOpenAPI 3.0.3

MTProto-Referenz

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

NameTypErforderlichBeschreibung
parent_peerInputPeerNeinIf set, fetches messages from the specified monoforum, otherwise fetches from saved messages.
peerInputPeerJaTarget peer (or topic)
offset_idintJaOnly return messages starting from the specified message ID
offset_dateintJaOnly return messages sent before the specified date
add_offsetintJaNumber of list elements to be skipped, negative values are also accepted.
limitintJaNumber of results to return
max_idintJaIf a positive value was transferred, the method will return only messages with IDs less than **max_id**
min_idintJaIf a positive value was transferred, the method will return only messages with IDs more than **min_id**
hashlongJa[Result hash](https://core.telegram.org/api/offsets.md)

Antworten

messages.Messages

MTProto RPC

  • 400 · CHAT_ADMIN_REQUIRED — Um dies zu tun, müssen Sie in diesem Chat Administrator sein.
  • 400 · PARENT_PEER_INVALID – Die angegebene parent_peer ist ungültig.
  • 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.

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.