GetStarsTransactionsRequest
Both users and bots may be able to use this request. See code examples.
---functions--- payments.getStarsTransactions#69da4557 flags:# inbound:flags.0?true outbound:flags.1?true ascending:flags.2?true ton:flags.4?true subscription_id:flags.3?string peer:InputPeer offset:string limit:int = payments.StarsStatus
Returns
| payments.StarsStatus |
This type can only be an instance of:
| StarsStatus |
Parameters
| peer | InputPeer | Anything entity-like will work if the library can find its Input version (e.g., usernames, Peer, User or Channel objects, etc.). |
| offset | string | |
| limit | int | |
| inbound | flag | This argument defaults to None and can be omitted. |
| outbound | flag | This argument defaults to None and can be omitted. |
| ascending | flag | This argument defaults to None and can be omitted. |
| ton | flag | This argument defaults to None and can be omitted. |
| subscription_id | string | This argument defaults to None and can be omitted. |
Known RPC errors
This request can't cause any RPC error as far as we know.
Example
from telethon.sync import TelegramClient
from telethon import functions, types
with TelegramClient(name, api_id, api_hash) as client:
result = client(functions.payments.GetStarsTransactionsRequest(
peer='username',
offset='some string here',
limit=100,
inbound=True,
outbound=True,
ascending=True,
ton=True,
subscription_id='some string here'
))
print(result.stringify())