Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto reference

messages.getChatInviteImporters

Get info about the users that joined the chat using a specific chat invite

NameTypeRequiredDescription
requestedtrueNoIf set, only returns info about users with pending [join requests »](https://core.telegram.org/api/invites.md#join-requests)
subscription_expiredtrueNoSet this flag if the link is a [Telegram Star subscription link »](https://core.telegram.org/api/stars.md#star-subscriptions) and only members with already expired subscription must be returned.
peerInputPeerYesChat
linkstringNoInvite link
qstringNoSearch for a user in the pending [join requests »](https://core.telegram.org/api/invites.md#join-requests) list: only available when the `requested` flag is set, cannot be used together with a specific `link`.
offset_dateintYes[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)
offset_userInputUserYesUser ID for [pagination](https://core.telegram.org/api/offsets.md): if set, `offset_date` must also be set.
limitintYesMaximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)

Responses

messages.ChatInviteImporters

MTProto RPC

  • 400 · CHANNEL_INVALID — The provided channel is invalid.
  • 400 · CHANNEL_PRIVATE — You haven't joined this channel/supergroup.
  • 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
  • 403 · CHAT_WRITE_FORBIDDEN — You can't write in this chat.
  • 400 · INVITE_HASH_EXPIRED — The invite link has expired.
  • 400 · PEER_ID_INVALID — The provided peer id is invalid.
  • 400 · SEARCH_WITH_LINK_NOT_SUPPORTED — You cannot provide a search query and an invite link at the same time.

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.