Telegram MTProto
TL レイヤー 236899 件のメソッドOpenAPI 3.0.3

MTProto reference

payments.upgradeStarGift

Upgrade a gift to a collectible gift: can only be used if the upgrade was already paid by the gift sender; see here » for more info on the full flow (including the different flow to use in case the upgrade was not paid by the gift sender).

Upgrade a [gift](https://core.telegram.org/api/gifts.md) to a [collectible gift](https://core.telegram.org/api/gifts.md#collectible-gifts): can only be used if the upgrade was already paid by the gift sender; see [here »](https://core.telegram.org/api/gifts.md#upgrade-a-gift-to-a-collectible-gift) for more info on the full flow (including the different flow to use in case the upgrade was not paid by the gift sender).

名前型必須説明
keep_original_detailstrueいいえこのフラグを設定すると、アップグレードされたギフトに元のギフト テキスト、送信者、受信者が [star GiftAttributeOriginalDetails](https://core.telegram.org/constructor/starGiftAttributeOriginalDetails.md)] 属性として保持されます。
stargiftInputSavedStarGiftはいThe gift to upgrade

レスポンス

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 · SAVED_ID_EMPTY — The passed inputSavedStarGiftChat.saved_id is empty.
  • 400 · STARGIFT_ALREADY_CONVERTED — The specified star gift was already converted to Stars.
  • 400 · STARGIFT_ALREADY_UPGRADED — The specified gift was already upgraded to a collectible gift.
  • 400 · STARGIFT_UPGRADE_UNAVAILABLE — A received gift can only be upgraded to a collectible gift if the [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md)/[savedStarGift](https://core.telegram.org/constructor/savedStarGift.md).can_upgrade flag is set.

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.