Raw.MessageActionStarGift
You received a gift, see here for more info.
messageActionStarGift#4717e8a4 flags:# name_hidden:flags.0?true saved:flags.2?true converted:flags.3?true upgraded:flags.5?true refunded:flags.9?true can_upgrade:flags.10?true gift:StarGift message:flags.1?TextWithEntities convert_stars:flags.4?long upgrade_msg_id:flags.5?int upgrade_stars:flags.8?long from_id:flags.11?Peer peer:flags.12?Peer saved_id:flags.12?long = MessageAction;
export namespace Raw {
export class MessageActionStarGift {
constructor(params: {
nameHidden?: boolean;
saved?: boolean;
converted?: boolean;
upgraded?: boolean;
refunded?: boolean;
canUpgrade?: boolean;
gift: Raw.TypeStarGift;
message?: Raw.TypeTextWithEntities;
convertStars?: bigint;
upgradeMsgId?: number;
upgradeStars?: bigint;
fromId?: Raw.TypePeer;
peer?: Raw.TypePeer;
savedId?: bigint;
}) {}
}
}
This is a types constructor, you can’t use it as method when call invoke.
Layer: 198
Constructor ID: 0x4717e8a4
Property
nameHidden
: boolean or undefinedIf set, the name of the sender of the gift will be hidden if the destination user decides to display the gift on their profile
saved
: boolean or undefinedWhether this gift was added to the destination user’s profile (may be toggled using payments.savestargift and fetched using payments.getuserstargifts)
converted
: boolean or undefinedWhether this gift was converted to telegram stars and cannot be displayed on the profile anymore.
upgraded
: boolean or undefinedrefunded
: boolean or undefinedcanUpgrade
: boolean or undefinedgift
: Raw.TypeStarGiftInfo about the gift
message
: Raw.TypeTextWithEntities or undefinedAdditional message from the sender of the gift
convertStars
: bigint or undefinedThe receiver of this gift may convert it to this many telegram stars, instead of displaying it on their profile page.convertStars will be equal to stars only if the gift was bought using recently bought telegram stars, otherwise it will be less than stars.
upgradeMsgId
: number or undefinedupgradeStars
: bigint or undefinedfromId
: Raw.TypePeer or undefinedpeer
: Raw.TypePeer or undefinedsavedId
: bigint or undefined