Raw.StarsTransaction
Represents a telegram stars transaction.
starsTransaction#2db5418f flags:# refund:flags.3?true pending:flags.4?true failed:flags.6?true gift:flags.10?true id:string stars:long date:int peer:StarsTransactionPeer title:flags.0?string description:flags.1?string photo:flags.2?WebDocument transaction_date:flags.5?int transaction_url:flags.5?string bot_payload:flags.7?bytes msg_id:flags.8?int extended_media:flags.9?Vector<MessageMedia> = StarsTransaction;
export namespace Raw {
export class StarsTransaction {
constructor(params: {
refund?: boolean;
pending?: boolean;
failed?: boolean;
gift?: boolean;
id: string;
stars: bigint;
date: number;
peer: Raw.TypeStarsTransactionPeer;
title?: string;
description?: string;
photo?: Raw.TypeWebDocument;
transactionDate?: number;
transactionUrl?: string;
botPayload?: Buffer;
msgId?: number;
extendedMedia?: Array<Raw.TypeMessageMedia>;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x2db5418f
Property
refund
: boolean or undefinedWhether this transaction is a refund.
pending
: boolean or undefinedfailed
: boolean or undefinedgift
: boolean or undefinedid
: stringTransaction id.
stars
: bigintAmount of stars (negative for outgoing transactions).
date
: numberDate of the transaction (unixtime).
peer
: Raw.TypeStarsTransactionPeerSource of the incoming transaction, or its recipient for outgoing transactions.
title
: string or undefinedFor transactions with bots, title of the bought product.
description
: string or undefinedFor transactions with bots, description of the bought product.
photo
: Raw.TypeWebDocument or undefinedFor transactions with bots, photo of the bought product.
transactionDate
: number or undefinedtransactionUrl
: string or undefinedbotPayload
: Buffer or undefinedmsgId
: number or undefinedextendedMedia
: Array of Raw.TypeMessageMedia or undefined