telegram api method · layer 229 · #19ba4a67

account.getPaidMessagesRevenue

usable by users

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.

definition

account.getPaidMessagesRevenue#19ba4a67 flags:# parent_peer:flags.0?InputPeer user_id:InputUser = account.PaidMessagesRevenue;

parameters

nametypedescription
flags#Flags, see TL conditional fields
parent_peerflags.0?InputPeerIf 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_idInputUserThe user that paid to send us messages.

returns

account.PaidMessagesRevenue

errors (4)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400PARENT_PEER_INVALIDThe specified parent_peer is invalid.
400USER_ID_INVALIDThe provided user ID is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 200–229 · constructor id changed 1×

idlayers
#f1266f38200–204
#19ba4a67205–229