Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto guide

payments.getStarsTransactions

Fetch Telegram Stars transactions.

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

NameTypeRequiredDescription
inboundtrueNoIf set, fetches only incoming transactions.
outboundtrueNoIf set, fetches only outgoing transactions.
ascendingtrueNoReturn transactions in ascending order by date (instead of descending order by date).
tontrueNoIf set, returns the channel/ad revenue transactions in nanograms, instead.
subscription_idstringNoIf set, fetches only transactions for the specified [Telegram Star subscription »](https://core.telegram.org/api/stars.md#star-subscriptions).
peerInputPeerYesFetch the transaction history of the peer ([inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md) or a bot we own).
offsetstringYes[Offset for pagination, obtained from the returned `next_offset`, initially an empty string »](https://core.telegram.org/api/offsets.md).
limitintYesMaximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)

Replies

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.