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.

account.paidMessagesRevenue#1e109708 stars_amount:long = account.PaidMessagesRevenue;
---functions---
account.getPaidMessagesRevenue#f1266f38 user_id:InputUser = account.PaidMessagesRevenue;

Parameters

Name Type Description
flags # Flags, see TL conditional fields
parent_peer flags.0?InputPeer If set, can contain the ID of a monoforum (channel direct messages) to obtain the number of stars the user has spent to send us direct messages via the channel.
user_id InputUser The user that paid to send us messages.

Result

account.PaidMessagesRevenue

Bots can use this method

Related pages

Forums

Telegram allows creating forums with multiple distinct topics.

Paid messages

Telegram Stars can be used to pay for sending messages to users, supergroups and channels that have configured paid messages, requiring a payment for every message sent to them.

Client configuration

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.