pub struct MessageGiftedPremium {
pub gifter_user_id: i64,
pub receiver_user_id: i64,
pub text: FormattedText,
pub currency: String,
pub amount: i64,
pub cryptocurrency: String,
pub cryptocurrency_amount: i64,
pub month_count: i32,
pub day_count: i32,
pub sticker: Option<Sticker>,
}Expand description
Telegram Premium was gifted to a user
Fields§
§gifter_user_id: i64The identifier of a user who gifted Telegram Premium; 0 if the gift was anonymous or is outgoing
receiver_user_id: i64The identifier of a user who received Telegram Premium; 0 if the gift is incoming
text: FormattedTextMessage added to the gifted Telegram Premium by the sender
currency: StringCurrency for the paid amount
amount: i64The paid amount, in the smallest units of the currency
cryptocurrency: StringCryptocurrency used to pay for the gift; may be empty if none
cryptocurrency_amount: i64The paid amount, in the smallest units of the cryptocurrency; 0 if none
month_count: i32Number of months the Telegram Premium subscription will be active after code activation; 0 if the number of months isn’t integer
day_count: i32Number of days the Telegram Premium subscription will be active
sticker: Option<Sticker>A sticker to be shown in the message; may be null if unknown
Trait Implementations§
Source§impl Clone for MessageGiftedPremium
impl Clone for MessageGiftedPremium
Source§fn clone(&self) -> MessageGiftedPremium
fn clone(&self) -> MessageGiftedPremium
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageGiftedPremium
impl Debug for MessageGiftedPremium
Source§impl<'de> Deserialize<'de> for MessageGiftedPremium
impl<'de> Deserialize<'de> for MessageGiftedPremium
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MessageGiftedPremium
impl PartialEq for MessageGiftedPremium
Source§impl Serialize for MessageGiftedPremium
impl Serialize for MessageGiftedPremium
impl StructuralPartialEq for MessageGiftedPremium
Auto Trait Implementations§
impl Freeze for MessageGiftedPremium
impl RefUnwindSafe for MessageGiftedPremium
impl Send for MessageGiftedPremium
impl Sync for MessageGiftedPremium
impl Unpin for MessageGiftedPremium
impl UnsafeUnpin for MessageGiftedPremium
impl UnwindSafe for MessageGiftedPremium
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more