Layer 220
PaymentsGetStarsTransactionsById
Obtain info about Telegram Star transactions using specific transaction IDs.
method
Users
payments.getStarsTransactionsByID#2dca16b8 flags:# ton:flags.0?true peer:InputPeer id:Vector<InputStarsTransaction> = payments.StarsStatus;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Ton | flags.0?true | If set, returns channel/bot ad revenue transactions in nanotons. |
| Peer | InputPeer | Channel or bot. |
| Id | Vector<InputStarsTransaction> | Transaction IDs. |
Returns
payments.StarsStatusPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | TRANSACTION_ID_INVALID | The specified transaction ID is invalid. |
Gogram Example
// PaymentsGetStarsTransactionsById - using Params struct result, err := client.PaymentsGetStarsTransactionsById(&tg.PaymentsGetStarsTransactionsByIdParams{ Peer: &tg.InputPeerUser{UserID: int64(123456789)}, Id: []tg.InputStarsTransaction{&tg.InputStarsTransaction{}}, // Optional fields: // Ton: true, }) if err != nil { // handle error } // result is *tg.PaymentsStarsStatus