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; recepient: Peer; type: "star_gift_transfer" } | { count: number; type: "api_floodskip" } 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;
}Optional
date?: Date
status: "pending" | "success" | "failed"
type: "fragment_withdraw"
Optional
url?: 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;
}Optional
description?: string
Optional
payload?: 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; recepient: Peer; type: "star_gift_transfer" }
recepient: Peer
type: "star_gift_transfer"
- { count: number; type: "api_floodskip" }
count: number
type: "api_floodskip"
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 transferapi_*
: This transaction is a payment for paid API featuresapi_floodskip
: This transaction is a payment for a paid bot broadcast