payments.GetStarsTransactionsByID

class pyrogram.raw.functions.payments.GetStarsTransactionsByID

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

Details:
  • Layer: 223

  • 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
├── tontrue (optional)
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── idVector < InputStarsTransaction >
├── refundtrue (optional)
└── idstring

Example

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