get_stars_transactions_by_id()
- Client.get_stars_transactions_by_id()
Get stars transactions by transaction id.
Usable by Users Bots
- Parameters:
transaction_ids (
InputStarsTransaction
| List ofInputStarsTransaction
) – Pass a single transaction identifier or an iterable of transaction ids (as integers) to get the content of the transaction themselveschat_id (
int
|str
, optional) – Unique identifier (int) or username (str) of the target user. You can also use chat public link in form of t.me/<username> (str). default to self. only for bots.
Example
# get one transaction by id from pyrogram.types import InputStarsTransaction app.get_stars_transactions_by_id(InputStarsTransaction(id="transaction_id")) # get multiple transactions by id from pyrogram.types import InputStarsTransaction app.get_stars_transactions_by_id([ InputStarsTransaction(id="transaction_id_1"), InputStarsTransaction(id="transaction_id_2") ]) # get one transaction by id from a specific user from pyrogram.types import InputStarsTransaction app.get_stars_transactions_by_id(InputStarsTransaction(id="transaction_id"), chat_id="username") # get multiple transaction by id from a specific user from pyrogram.types import InputStarsTransaction app.get_stars_transactions_by_id([ InputStarsTransaction(id="transaction_id_1"), InputStarsTransaction(id="transaction_id_2") ], chat_id="username")
- Returns:
StarsStatus
– On success, aStarsStatus
object is returned.