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

MTProto reference

payments.sendStarGiftOffer

Send an offer to purchase a collectible gift », see here » for the full flow.

Send an offer to purchase a [collectible gift »](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers), see [here »](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers) for the full flow.

名前型必須説明
peerInputPeerはいOwner of the collectible gift: equal to [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`owner_id`.
slugstringはいIdentifier of the collectible gift: equal to [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`slug`.
priceStarsAmountはいOffer price, in stars or TON.
durationintはいDuration of the offer, in seconds: must be one of `21600`, `43200`, `86400`, `129600`, `172800`, or `259200`; can also be `120` in test mode.
random_idlongはいRandom 64-bit identifier used to avoid sending the same offer twice in case of network issues. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.
allow_paid_starslongいいえIf the destination peer has [paid messages »](https://core.telegram.org/api/paid-messages.md) enabled, specifies the amount of [Telegram Stars](https://core.telegram.org/api/stars.md) the sending user has agreed to pay in order to send the offer (in addition to the amount for the offer itself, contained in `price`).

レスポンス

Updates

MTProto RPC

  • 400 · INPUT_STARS_AMOUNT_INVALID — The specified offer amount in stars is invalid, see [here »](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers) for the allowed range.
  • 400 · INPUT_STARS_NANOS_INVALID — The specified offer amount in nanotons is invalid, see [here »](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers) for the allowed range.
  • 400 · INVOICE_INVALID — The specified invoice is invalid.
  • 400 · PEER_ID_INVALID — The provided peer id is invalid.
  • 400 · RESELL_STARS_TOO_FEW — The offered price is too low.
  • 400 · RESELL_STARS_TOO_MUCH — The offered price is too high.
  • 400 · STARGIFT_OFFER_INVALID — The specified offer amount is invalid.
  • 400 · STARGIFT_OFFER_NOT_ALLOWED — You can't send a purchase offer for this gift.
  • 400 · STARGIFT_SLUG_INVALID — The specified gift slug 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.