Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto reference

payments.getResaleStarGifts

Get collectible gifts of a specific type currently on resale, see here » for more info.

Get [collectible gifts](https://core.telegram.org/api/gifts.md#collectible-gifts) of a specific type currently on resale, see [here »](https://core.telegram.org/api/gifts.md#reselling-collectible-gifts) for more info.

NameTypeRequiredDescription
sort_by_pricetrueNoSort gifts by price (ascending).
sort_by_numtrueNoSort gifts by number (ascending).
for_crafttrueNoOnly return collectible gifts that can be bought and used for [crafting »](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts); render each returned gift's [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`craft_chance_permille` as its crafting success contribution.
stars_onlytrueNoOnly return gifts that can be bought using [Stars](https://core.telegram.org/api/stars.md).
ton_onlytrueNoValue of TL type `true`.
fragment_onlytrueNoValue of TL type `true`.
attributes_hashlongNoIf a previous call to the method was made and [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes_hash` was set, pass it here to avoid returning any results if they haven't changed. Otherwise, set this flag and pass `0` to return [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes_hash` and [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes`, **these two fields will not be set** if this flag is not set.
gift_idlongYesMandatory identifier of the base gift from which the collectible gift was upgraded.
attributesVector<StarGiftAttributeId>NoOptionally filter gifts with the specified attributes. If no attributes of a specific type are specified, all attributes of that type are allowed.
offsetstringYesOffset for pagination. If not equal to an empty string, [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`counters` will not be set to avoid returning the counters every time a new page is fetched.
limitintYesMaximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)

Responses

payments.ResaleStarGifts

MTProto RPC

  • 400 · STARGIFT_ATTRIBUTE_INVALID — One of the specified star gift attributes is invalid.
  • 400 · STARGIFT_INVALID — The passed gift 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.