Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto reference

messages.exportChatInvite

Export an invite link for a chat

NameTypeRequiredDescription
legacy_revoke_permanenttrueNoLegacy flag, reproducing legacy behavior of this method: if set, revokes all previous links before creating a new one. Kept for bot API BC, should not be used by modern clients.
request_neededtrueNoWhether admin confirmation is required before admitting each separate user into the chat
peerInputPeerYesChat
expire_dateintNoExpiration date
usage_limitintNoMaximum number of users that can join using this link
titlestringNoDescription of the invite link, visible only to administrators
subscription_pricingStarsSubscriptionPricingNoFor [Telegram Star subscriptions »](https://core.telegram.org/api/stars.md#star-subscriptions), contains the pricing of the subscription the user must activate to join the private channel.

Responses

ExportedChatInvite

MTProto RPC

  • 400 · CHANNEL_INVALID — The provided channel is invalid.
  • 400 · CHANNEL_MONOFORUM_UNSUPPORTED — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) do not support this feature.
  • 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.
  • 400 · CHAT_ID_INVALID — The provided chat id is invalid.
  • 403 · CHAT_WRITE_FORBIDDEN — You can't write in this chat.
  • 400 · EXPIRE_DATE_INVALID — The specified expiration date is invalid.
  • 400 · INPUT_USER_DEACTIVATED — The specified user was deleted.
  • 400 · MSG_ID_INVALID — Invalid message ID provided.
  • 400 · PEER_ID_INVALID — The provided peer id is invalid.
  • 400 · PRICING_CHAT_INVALID — The pricing for the [subscription](https://core.telegram.org/api/subscriptions.md) is invalid, the maximum price is specified in the [stars_subscription_amount_max config key »](https://core.telegram.org/api/config.md#stars-subscription-amount-max).
  • 400 · SUBSCRIPTION_PERIOD_INVALID — The specified subscription_pricing.period is invalid.
  • 400 · USAGE_LIMIT_INVALID — The specified usage limit 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.