Telegram MTProto
TL-Schicht 236899 MethodenOpenAPI 3.0.3

MTProto-Referenz

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.

NameTypErforderlichBeschreibung
exclude_unsavedtrueNeinExclude gifts not pinned on the profile.
exclude_savedtrueNeinExclude gifts pinned on the profile.
exclude_unlimitedtrueNeinExclude gifts that do not have the [starGift](https://core.telegram.org/constructor/starGift.md).`limited` flag set.
exclude_uniquetrueNeinExclude [collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts).
sort_by_valuetrueNeinIf set, sorts the gifts by price instead of reception date.
exclude_upgradabletrueNeinExclude gifts that can be [upgraded to collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts).
exclude_unupgradabletrueNeinExclude gifts that cannot be [upgraded to collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts).
peer_color_availabletrueNeinIf 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_hostedtrueNeinIf set, excludes [hosted collectible gifts »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts), returning only gifts owned or received by `peer`.
peerInputPeerJaFetch 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_idintNeinOnly returns gifts within the specified [collection »](https://core.telegram.org/api/gifts.md#gift-collections).
offsetstringJa[Offset for pagination](https://core.telegram.org/api/offsets.md).
limitintJaMaximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)

Antworten

payments.SavedStarGifts

MTProto RPC

  • 400 · BUSINESS_CONNECTION_INVALID – Die an den Wrapping-Aufruf [invokeWithBusinessConnection](https://core.telegram.org/api/business.md)] übergebene connection_id ist ungültig.
  • 400 · COLLECTION_ID_INVALID – Die angegebene Sammlungs-ID ist ungültig.
  • 400 · MSG_ID_INVALID – Ungültige Nachrichten-ID angegeben.
  • 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.

Telegrammdokumentation ↗

Пользователи 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.