Telegram MTProto
طبقة TL 236عدد الطرق: 899OpenAPI 3.0.3

MTProto reference

payments.updateStarGiftCollection

Add or remove gifts from a star gift collection », or rename the collection.

Add or remove gifts from a [star gift collection »](https://core.telegram.org/api/gifts.md#gift-collections), or rename the collection.

الاسمالنوعمطلوبالوصف
peerInputPeerأيوهPeer that owns the collection.
collection_idintأيوهCollection ID.
titlestringلأTitle of the collection, to rename the collection.
delete_stargiftVector<InputSavedStarGift>لأCan contain a list of gifts to remove from the collection.
add_stargiftVector<InputSavedStarGift>لأCan contain a list of gifts to add to the collection.
orderVector<InputSavedStarGift>لأCan contain the new gift order.

الردود

StarGiftCollection

MTProto RPC

  • 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.