Telegram MTProto
TL layer 236899 methodsOpenAPI 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.

NameTypeRequiredDescription
exclude_unsavedtrueNoExclude gifts not pinned on the profile.
exclude_savedtrueNoExclude gifts pinned on the profile.
exclude_unlimitedtrueNoExclude gifts that do not have the [starGift](https://core.telegram.org/constructor/starGift.md).`limited` flag set.
exclude_uniquetrueNoExclude [collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts).
sort_by_valuetrueNoIf set, sorts the gifts by price instead of reception date.
exclude_upgradabletrueNoExclude gifts that can be [upgraded to collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts).
exclude_unupgradabletrueNoExclude gifts that cannot be [upgraded to collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts).
peer_color_availabletrueNoIf 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_hostedtrueNoIf set, excludes [hosted collectible gifts »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts), returning only gifts owned or received by `peer`.
peerInputPeerYesFetch 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_idintNoOnly returns gifts within the specified [collection »](https://core.telegram.org/api/gifts.md#gift-collections).
offsetstringYes[Offset for pagination](https://core.telegram.org/api/offsets.md).
limitintYesMaximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)

Responses

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.