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.
| Name | Type | Required | Description |
|---|---|---|---|
parent_peer | InputPeer | No | 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_id | InputUser | Yes | The user that paid to send us messages. |
Responses
account.PaidMessagesRevenue
MTProto RPC
- 400 · PARENT_PEER_INVALID — The specified parent_peer is invalid.
- 400 · USER_ID_INVALID — The provided user ID is invalid.