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

MTProto reference

payments.getStarsTransactions

Fetch Telegram Stars transactions.

Fetch [Telegram Stars transactions](https://core.telegram.org/api/stars.md#balance-and-transaction-history).

الاسمالنوعمطلوبالوصف
inboundtrueلأIf set, fetches only incoming transactions.
outboundtrueلأIf set, fetches only outgoing transactions.
ascendingtrueلأReturn transactions in ascending order by date (instead of descending order by date).
tontrueلأIf set, returns the channel/ad revenue transactions in nanograms, instead.
subscription_idstringلأIf set, fetches only transactions for the specified [Telegram Star subscription »](https://core.telegram.org/api/stars.md#star-subscriptions).
peerInputPeerأيوهFetch the transaction history of the peer ([inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md) or a bot we own).
offsetstringأيوه[Offset for pagination, obtained from the returned `next_offset`, initially an empty string »](https://core.telegram.org/api/offsets.md).
limitintأيوهMaximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)

الردود

payments.StarsStatus

MTProto RPC

  • 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
  • 400 · PEER_ID_INVALID — The provided peer id is invalid.
  • 400 · SUBSCRIPTION_ID_INVALID — The specified subscription_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.