Telegram MTProto
TL レイヤー 236899 件のメソッドOpenAPI 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.