telegram api method · layer 229 · #4ea9b3bf

payments.getStarsStatus

usable by users

Get the current Telegram Stars balance of the current account (with peer=inputPeerSelf), or the stars balance of the bot specified in peer.

definition

payments.getStarsStatus#4ea9b3bf flags:# ton:flags.0?true peer:InputPeer = payments.StarsStatus;

parameters

nametypedescription
flags#Flags, see TL conditional fields
tonflags.0?trueIf set, returns the channel/ad revenue balance in nanotons.
peerInputPeerPeer of which to get the balance.

returns

payments.StarsStatus

errors (5)

codeerrordescription
400BUSINESS_CONNECTION_INVALIDThe connection_id passed to the wrapping invokeWithBusinessConnection call is invalid.
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.
400PEER_ID_INVALIDThe provided peer id is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
403BOT_ACCESS_FORBIDDENThe specified method *can* be used over a business connection for some operations, but the specified query attempted an operation that is not allowed over a business connection.

history

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

idlayers
#104fcfa7181–205
#4ea9b3bf206–229