Telegram MTProto
TL レイヤー 236899 件のメソッドOpenAPI 3.0.3

MTProto reference

account.getPaidMessagesRevenue

Get the number of stars we have received from the specified user thanks to paid messages »; the received amount will be equal to the sent amount multiplied by stars\_paid\_message\_commission\_permille divided by 1000.

Get the number of stars we have received from the specified user thanks to [paid messages »](https://core.telegram.org/api/paid-messages.md); the received amount will be equal to the sent amount multiplied by [stars\_paid\_message\_commission\_permille](https://core.telegram.org/api/config.md#stars-paid-message-commission-permille) divided by 1000.

名前型必須説明
parent_peerInputPeerいいえIf set, can contain the ID of a [monoforum (channel direct messages)](https://core.telegram.org/api/monoforum.md) to obtain the number of stars the user has spent to send us direct messages via the channel.
user_idInputUserはいThe user that paid to send us messages.

レスポンス

account.PaidMessagesRevenue

MTProto RPC

  • 400 · PARENT_PEER_INVALID — The specified parent_peer is invalid.
  • 400 · USER_ID_INVALID — The provided user 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.