Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto reference

messages.getDialogs

Get list of dialogs

Returns the current account's dialog page. The selection can be limited to a folder.

NameTypeRequiredDescription
exclude_pinnedtrueNoSkip pinned conversations.
folder_idintNoDialogue folder identifier.
offset_dateintYesDate of the message to advance to the next page, in Unix seconds.
offset_idintYesMessage ID for list offset.
offset_peerInputPeerYesThe chat regarding which the issuance continues.
limitintYesThe maximum number of dialogs returned.
hashlongYesA hash of previously received results to check for changes.

Responses

messages.Dialogs

MTProto RPC

  • 400 · CHAT_NOT_MODIFIED — No changes were made to chat information because the new information you passed is identical to the current information.
  • 403 · CHAT_WRITE_FORBIDDEN — You can't write in this chat.
  • 400 · FOLDER_ID_INVALID — Invalid folder ID.
  • 400 · OFFSET_PEER_ID_INVALID — The provided offset peer is invalid.
  • 400 · PINNED_DIALOGS_TOO_MUCH — Too many pinned dialogs.
  • 400 · TAKEOUT_INVALID — The specified takeout 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.