#[non_exhaustive]pub struct GiftInfo {
pub gift: Gift,
pub owned_gift_id: Option<String>,
pub convert_star_count: Option<i64>,
pub prepaid_upgrade_star_count: Option<i64>,
pub is_upgrade_separate: Option<bool>,
pub can_be_upgraded: Option<bool>,
pub text: Option<String>,
pub entities: Option<Vec<MessageEntity>>,
pub is_private: Option<bool>,
pub unique_gift_number: Option<i64>,
}Expand description
Service message: a regular gift was sent or received.
Sealed but without Default: the required gift field is a Gift,
which has no meaningful default and would drag one through Sticker and the
whole gift model hierarchy. Same reasoning as
ExternalReplyInfo — this type is only
received, never constructed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.gift: GiftInformation about the gift.
owned_gift_id: Option<String>Identifier of the received gift for the bot; present only if the gift can be upgraded or converted to Telegram Stars.
convert_star_count: Option<i64>Number of Telegram Stars the gift can be converted to by the receiver.
prepaid_upgrade_star_count: Option<i64>Number of Telegram Stars prepaid by the sender for a later upgrade.
is_upgrade_separate: Option<bool>true if the gift upgrade is sent as a separate service message.
can_be_upgraded: Option<bool>true if the gift can be upgraded to a unique gift.
text: Option<String>Text message accompanying the gift.
entities: Option<Vec<MessageEntity>>Special entities appearing in the accompanying text.
is_private: Option<bool>true if the sender and gift text are visible only to the receiver.
unique_gift_number: Option<i64>Unique number of the upgraded gift among gifts upgraded from the same one.