Layer 224
method Users
payments.getStarsTransactionsByID#2dca16b8 flags:# ton:flags.0?true peer:InputPeer id:Vector<InputStarsTransaction> = payments.StarsStatus;

Parameters

Name Type Description
Ton flags.0?true If set, returns channel/bot ad revenue transactions in nanotons.
Peer InputPeer Channel or bot.
Id Vector<InputStarsTransaction> Transaction IDs.

Gogram Example

// PaymentsGetStarsTransactionsById - using Params struct
result, err := client.PaymentsGetStarsTransactionsById(&tg.PaymentsGetStarsTransactionsByIdParams{
    Peer: &tg.InputPeerUser{UserID: int64(777000)},
    Id: []tg.InputStarsTransaction{&tg.InputStarsTransaction{}},

    // Optional fields:
    // Ton: true,
})
if err != nil {
    // handle error
}
// result is *tg.PaymentsStarsStatus

Possible Errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.
400 TRANSACTION_ID_INVALID The specified transaction ID is invalid.