payments.getStarsTransactions #

Fetch Telegram Stars transactions.

The inbound and outbound flags are mutually exclusive: if none of the two are set, both incoming and outgoing transactions are fetched.

Layer 223

payments.starsStatus#6c9ce8ed flags:# balance:StarsAmount subscriptions:flags.1?Vector<StarsSubscription> subscriptions_next_offset:flags.2?string subscriptions_missing_balance:flags.4?long history:flags.3?Vector<StarsTransaction> next_offset:flags.0?string chats:Vector<Chat> users:Vector<User> = payments.StarsStatus;
---functions---
payments.getStarsTransactions#69da4557 flags:# inbound:flags.0?true outbound:flags.1?true ascending:flags.2?true ton:flags.4?true subscription_id:flags.3?string peer:InputPeer offset:string limit:int = payments.StarsStatus;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
inboundflags.0?trueIf set, fetches only incoming transactions.
outboundflags.1?trueIf set, fetches only outgoing transactions.
ascendingflags.2?trueReturn transactions in ascending order by date (instead of descending order by date).
tonflags.4?trueIf set, returns the channel/ad revenue transactions in nanograms, instead.
subscription_idflags.3?stringIf set, fetches only transactions for the specified Telegram Star subscription ».
peerInputPeerFetch the transaction history of the peer (inputPeerSelf or a bot we own).
offsetstringOffset for pagination, obtained from the returned next_offset, initially an empty string ».
limitintMaximum number of results to return, see pagination

Result #

payments.StarsStatus

Both users and bots can use this method #

Possible errors #

CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400PEER_ID_INVALIDThe provided peer id is invalid.
400SUBSCRIPTION_ID_INVALIDThe specified subscription_id is invalid.

Telegram Stars #

Telegram Stars are virtual items that allow users to purchase digital goods and services from bots and mini apps inside the Telegram ecosystem, send gifts to content creators on the Telegram platform, and more.

inputPeerSelf #

Defines the current user.

Pagination in the API #

How to fetch results from large lists of objects.