payments.GetStarsTransactionsByID

class pyrogram.raw.functions.payments.GetStarsTransactionsByID

Obtain info about Telegram Star transactions » using specific transaction IDs.

Details:
  • Layer: 227

  • ID: 2DCA16B8

Parameters:
  • peer (InputPeer) – Channel or bot.

  • id (List of InputStarsTransaction) – Transaction IDs.

  • ton (bool, optional) – If set, returns channel/bot ad revenue transactions in nanotons.

Returns:

payments.StarsStatus

TL Schema

payments.getStarsTransactionsByID#2dca16b8
flags:#
ton:flags.0?true
peer:InputPeer
id:Vector<InputStarsTransaction>

= payments.StarsStatus

Parameter Tree

GetStarsTransactionsByID
├── ton → true (optional)
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
└── id → Vector < InputStarsTransaction >
├── refund → true (optional)
└── id → string

Example

await app.invoke(
    GetStarsTransactionsByID(
        ton=None,
        peer=await app.resolve_peer(chat_id),
        id=[
                InputStarsTransaction(
                    refund=None,
                    id="text"
                )
            ],
    )
)