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.
payments.starsStatus#bbfa316c flags:# balance:long 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 subscription_id:flags.3?string peer:InputPeer offset:string limit:int = payments.StarsStatus;
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
inbound | flags.0?true | If set, fetches only incoming transactions. |
outbound | flags.1?true | If set, fetches only outgoing transactions. |
ascending | flags.2?true | Return transactions in ascending order by date (instead of descending order by date). |
subscription_id | flags.3?string | If set, fetches only transactions for the specified Telegram Star subscription ». |
peer | InputPeer | Fetch the transaction history of the peer (inputPeerSelf or a bot we own). |
offset | string | Offset for pagination, obtained from the returned next_offset , initially an empty string ». |
limit | int | Maximum number of results to return, see pagination |
Code | Type | Description |
---|---|---|
400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
400 | PEER_ID_INVALID | The provided peer id is invalid. |
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.
Defines the current user.
How to fetch results from large lists of objects.