Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto reference

payments.transferStarGift

Transfer a collectible gift to another user or channel: can only be used if transfer is free (i.e. messageActionStarGiftUnique.`transfer_stars` is not set); see here » for more info on the full flow (including the different flow to use in case the transfer isn't free).

Transfer a [collectible gift](https://core.telegram.org/api/gifts.md#collectible-gifts) to another user or channel: can only be used if transfer is free (i.e. [messageActionStarGiftUnique](https://core.telegram.org/constructor/messageActionStarGiftUnique.md).`transfer_stars` is not set); see [here »](https://core.telegram.org/api/gifts.md#transferring-collectible-gifts) for more info on the full flow (including the different flow to use in case the transfer isn't free).

NameTypeRequiredDescription
stargiftInputSavedStarGiftYesThe gift to transfer.
to_idInputPeerYesDestination peer.

Responses

Updates

MTProto RPC

  • 400 · BUSINESS_CONNECTION_INVALID — The connection_id passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.
  • 400 · MESSAGE_ID_INVALID — The provided message id is invalid.
  • 400 · PAYMENT_REQUIRED — Payment is required for this action, see [here »](https://core.telegram.org/api/gifts.md) for more info.
  • 400 · PEER_ID_INVALID — The provided peer id is invalid.
  • 400 · SAVED_ID_EMPTY — The passed inputSavedStarGiftChat.saved_id is empty.
  • 400 · STARGIFT_NOT_FOUND — The specified gift was not found.
  • 400 · STARGIFT_NOT_OWNER — You're not the owner of the gift you trying to transfer.
  • 400 · STARGIFT_NOT_UNIQUE — You can't transfer a non-collectible gift.
  • 400 · STARGIFT_OWNER_INVALID — You cannot transfer or sell a gift owned by another user.
  • 400 · STARGIFT_PEER_INVALID — The specified inputSavedStarGiftChat.peer is invalid.
  • 400 · STARGIFT_TRANSFER_TOO_EARLY_%d — You cannot transfer this gift yet, wait %d seconds.

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.