pub struct GiftPremiumSubscription { /* private fields */ }Expand description
Builder for the giftPremiumSubscription method.
Gifts a Telegram Premium subscription to a user.
month_count must be 3, 6, or 12.
star_count must be 1000, 1500, or 2500 respectively.
Implementations§
Source§impl GiftPremiumSubscription
impl GiftPremiumSubscription
Sourcepub fn text(self, t: impl Into<String>) -> Self
pub fn text(self, t: impl Into<String>) -> Self
Optional text to accompany the gift (0–128 characters).
Sourcepub fn text_parse_mode(self, m: ParseMode) -> Self
pub fn text_parse_mode(self, m: ParseMode) -> Self
Parse mode for entities in the gift text.
Sourcepub fn text_entities(self, e: Vec<MessageEntity>) -> Self
pub fn text_entities(self, e: Vec<MessageEntity>) -> Self
Special entities in the gift text; alternative to text_parse_mode.
Trait Implementations§
Source§impl IntoFuture for GiftPremiumSubscription
impl IntoFuture for GiftPremiumSubscription
Source§type IntoFuture = Pin<Box<dyn Future<Output = <GiftPremiumSubscription as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <GiftPremiumSubscription as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for GiftPremiumSubscription
impl !UnwindSafe for GiftPremiumSubscription
impl Freeze for GiftPremiumSubscription
impl Send for GiftPremiumSubscription
impl Sync for GiftPremiumSubscription
impl Unpin for GiftPremiumSubscription
impl UnsafeUnpin for GiftPremiumSubscription
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