Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto reference

updates.getDifference

Get new updates.

Get new [updates](https://core.telegram.org/api/updates.md).

NameTypeRequiredDescription
ptsintYesPTS, see [updates](https://core.telegram.org/api/updates.md).
pts_limitintNoPTS limit
pts_total_limitintNoFor fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](https://core.telegram.org/constructor/updates.differenceTooLong.md) will be returned. Simply tells the server to not return the difference if it is bigger than `pts_total_limit` If the remote pts is too big (&gt; ~4000000), this field will default to 1000000
dateintYesdate, see [updates](https://core.telegram.org/api/updates.md).
qtsintYesQTS, see [updates](https://core.telegram.org/api/updates.md).
qts_limitintNoQTS limit

Responses

updates.Difference

MTProto RPC

  • 400 · CDN_METHOD_INVALID — You can't call this method in a CDN DC.
  • 400 · CHANNEL_INVALID — The provided channel is invalid.
  • 400 · CHANNEL_PRIVATE — You haven't joined this channel/supergroup.
  • 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 · DATE_EMPTY — Date empty.
  • 400 · MSG_ID_INVALID — Invalid message ID provided.
  • 400 · PERSISTENT_TIMESTAMP_EMPTY — Persistent timestamp empty.
  • 400 · PERSISTENT_TIMESTAMP_INVALID — Persistent timestamp invalid.
  • 500 · RANDOM_ID_DUPLICATE — You provided a random ID that was already used.
  • 400 · USERNAME_INVALID — The provided username is not valid.
  • 400 · USER_NOT_PARTICIPANT — You're not a member of this supergroup/channel.

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.