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

MTProto reference

payments.getSavedStarGifts

Fetch the full list of gifts » owned, received or hosted » by a peer.

Fetch the full list of [gifts »](https://core.telegram.org/api/gifts.md#list-all-received-gifts) owned, received or [hosted »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) by a peer.

名前型必須説明
exclude_unsavedtrueいいえExclude gifts not pinned on the profile.
exclude_savedtrueいいえExclude gifts pinned on the profile.
exclude_unlimitedtrueいいえExclude gifts that do not have the [starGift](https://core.telegram.org/constructor/starGift.md).`limited` flag set.
exclude_uniquetrueいいえExclude [collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts).
sort_by_valuetrueいいえIf set, sorts the gifts by price instead of reception date.
exclude_upgradabletrueいいえExclude gifts that can be [upgraded to collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts).
exclude_unupgradabletrueいいえExclude gifts that cannot be [upgraded to collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts).
peer_color_availabletrueいいえIf set, only returns [collectible gifts](https://core.telegram.org/api/gifts.md#collectible-gifts) whose palette can be used as a [collectible message palette »](https://core.telegram.org/api/colors.md#collectible-message-palettes).
exclude_hostedtrueいいえIf set, excludes [hosted collectible gifts »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts), returning only gifts owned or received by `peer`.
peerInputPeerはいFetch only gifts owned, received or [hosted »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) by the specified peer, such as: a user, with peer=[inputPeerUser](https://core.telegram.org/constructor/inputPeerUser.md); a channel, with peer=[inputPeerChannel](https://core.telegram.org/constructor/inputPeerChannel.md); a [connected business user »](https://core.telegram.org/api/bots/connected-business-bots.md) (when executing the method as a bot, over the business connection), with peer=[inputPeerUser](https://core.telegram.org/constructor/inputPeerUser.md).
collection_idintいいえOnly returns gifts within the specified [collection »](https://core.telegram.org/api/gifts.md#gift-collections).
offsetstringはい[Offset for pagination](https://core.telegram.org/api/offsets.md).
limitintはいMaximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)

レスポンス

payments.SavedStarGifts

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 · COLLECTION_ID_INVALID — The specified collection ID is invalid.
  • 400 · MSG_ID_INVALID — Invalid message ID provided.
  • 400 · PEER_ID_INVALID — The provided peer id 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.