Type Alias StarsTransactionType
StarsTransactionType:    | { type: "unsupported" }    | { type: "app_store" }    | { type: "play_market" }    | { type: "premium_bot" }    | { type: "fragment" }    | {        date?: Date;        status: "pending" | "success" | "failed";        type: "fragment_withdraw";        url?: string;    }    | { type: "ads" }    | { messageId: number; peer: Peer; type: "reaction" }    | { type: "gift"; user: User }    | {        media?: MessageMedia[];        messageId: number;        peer: Peer;        type: "media_purchase";    }    | {        description?: string;        payload?: Uint8Array;        photo?: WebDocument;        title: string;        type: "bot_purchase";        user: User;    }    | { peer: Peer; period: number; type: "channel_subscription" }    | { messageId: number; peer: Peer; type: "giveaway" }    | { gift: StarGift; peer: Peer; type: "star_gift" }    | { gift: StarGiftUnique; peer: Peer; type: "star_gift_upgrade" }    | { gift: StarGiftUnique; peer: Peer; type: "star_gift_resale" }    | { gift: StarGiftUnique; recipient: Peer; type: "star_gift_transfer" }    | { count: number; peer: Peer; type: "paid_message" }    | { months: number; peer: Peer; type: "premium_gift" }    | { count: number; type: "api_floodskip" }    | { commission: number; peer: Peer; type: "bot_referral" }    | { fromDate: Date; peer: Peer; toDate: Date; type: "ads_proceeds" }    | { type: "paid_search" }    | { gift: StarGiftUnique; peer: Peer; type: "star_gift_prepaid_upgrade" }    | { gift: StarGiftUnique; peer: Peer; type: "star_gift_drop_details" } Type declaration
- { type: "unsupported" }
- { type: "app_store" }
- { type: "play_market" }
- { type: "premium_bot" }
- { type: "fragment" }
- {
 date?: Date;
 status: "pending" | "success" | "failed";
 type: "fragment_withdraw";
 url?: string;
 }- Optionaldate?: Date
- status: "pending" | "success" | "failed"
- type: "fragment_withdraw"
- Optionalurl?: string
 
- { type: "ads" }
- { messageId: number; peer: Peer; type: "reaction" }- messageId: number
- type: "reaction"
 
- { type: "gift"; user: User }
- {
 media?: MessageMedia[];
 messageId: number;
 peer: Peer;
 type: "media_purchase";
 }- messageId: number
- type: "media_purchase"
 
- {
 description?: string;
 payload?: Uint8Array;
 photo?: WebDocument;
 title: string;
 type: "bot_purchase";
 user: User;
 }- Optionaldescription?: string
- Optionalpayload?: Uint8Array
- title: string
- type: "bot_purchase"
 
- { peer: Peer; period: number; type: "channel_subscription" }- period: number
- type: "channel_subscription"
 
- { messageId: number; peer: Peer; type: "giveaway" }- messageId: number
- type: "giveaway"
 
- { gift: StarGift; peer: Peer; type: "star_gift" }
- { gift: StarGiftUnique; peer: Peer; type: "star_gift_upgrade" }- type: "star_gift_upgrade"
 
- { gift: StarGiftUnique; peer: Peer; type: "star_gift_resale" }
- { gift: StarGiftUnique; recipient: Peer; type: "star_gift_transfer" }- recipient: Peer
- type: "star_gift_transfer"
 
- { count: number; peer: Peer; type: "paid_message" }- count: number
- type: "paid_message"
 
- { months: number; peer: Peer; type: "premium_gift" }- months: number
- type: "premium_gift"
 
- { count: number; type: "api_floodskip" }- count: number
- type: "api_floodskip"
 
- { commission: number; peer: Peer; type: "bot_referral" }- commission: number
- type: "bot_referral"
 
- { fromDate: Date; peer: Peer; toDate: Date; type: "ads_proceeds" }- fromDate: Date
- toDate: Date
- type: "ads_proceeds"
 
- { type: "paid_search" }
- { gift: StarGiftUnique; peer: Peer; type: "star_gift_prepaid_upgrade" }- type: "star_gift_prepaid_upgrade"
 
- { gift: StarGiftUnique; peer: Peer; type: "star_gift_drop_details" }- type: "star_gift_drop_details"
 
Type of the transaction.
unsupported: This transaction is not supported by the current version of clientapp_store,play_market,premium_bot,fragment: This transaction is a purchase through App Store, Play Market, Premium Bot or Fragment respectivelyfragment_withdraw: This transaction is a withdrawal via Fragmentads: This transaction is with the Telegram Ads platformreaction: This transaction is a paid reaction in a chatgift: This transaction is a gift from a userbot_purchase: This transaction is a purchase at a bot-operated storechannel_subscription: This transaction is a subscription to a channelstar_gift: This transaction is either a star gift to a user (if outgoing), or converting a star gift to stars (if incoming)star_gift_upgrade: This transaction is for a star gift upgradestar_gift_transfer: This transaction is for a star gift transferstar_gift_resale: This transaction is for a star gift resalepaid_message: This transaction is a payment for a paid messagepremium_gift: This transaction is a payment for a premium gift to a userapi_*: This transaction is a payment for paid API featuresapi_floodskip: This transaction is a payment for a paid bot broadcastbot_referral: This transaction is proceeds from a bot referral programads_proceeds: This transaction is proceeds from Telegram Adspaid_search: This transaction is a payment for a paid searchstar_gift_prepaid_upgrade: This transaction is for a star gift prepaid upgradestar_gift_drop_details: This transaction is for dropping the original details of a star gift