pub enum CanSendStoryResult {
Ok,
PremiumNeeded,
BoostNeeded,
ActiveStoryLimitExceeded,
WeeklyLimitExceeded(CanSendStoryResultWeeklyLimitExceeded),
MonthlyLimitExceeded(CanSendStoryResultMonthlyLimitExceeded),
}
Variants§
Ok
A story can be sent
PremiumNeeded
The user must subscribe to Telegram Premium to be able to post stories
BoostNeeded
The channel chat must be boosted first by Telegram Premium subscribers to post more stories. Call getChatBoostStatus to get current boost status of the chat
ActiveStoryLimitExceeded
The limit for the number of active stories exceeded. The user can buy Telegram Premium, delete an active story, or wait for the oldest story to expire
WeeklyLimitExceeded(CanSendStoryResultWeeklyLimitExceeded)
The weekly limit for the number of posted stories exceeded. The user needs to buy Telegram Premium or wait specified time
MonthlyLimitExceeded(CanSendStoryResultMonthlyLimitExceeded)
The monthly limit for the number of posted stories exceeded. The user needs to buy Telegram Premium or wait specified time
Trait Implementations§
Source§impl Clone for CanSendStoryResult
impl Clone for CanSendStoryResult
Source§fn clone(&self) -> CanSendStoryResult
fn clone(&self) -> CanSendStoryResult
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 CanSendStoryResult
impl Debug for CanSendStoryResult
Source§impl<'de> Deserialize<'de> for CanSendStoryResult
impl<'de> Deserialize<'de> for CanSendStoryResult
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 CanSendStoryResult
impl PartialEq for CanSendStoryResult
Source§impl Serialize for CanSendStoryResult
impl Serialize for CanSendStoryResult
impl StructuralPartialEq for CanSendStoryResult
Auto Trait Implementations§
impl Freeze for CanSendStoryResult
impl RefUnwindSafe for CanSendStoryResult
impl Send for CanSendStoryResult
impl Sync for CanSendStoryResult
impl Unpin for CanSendStoryResult
impl UnwindSafe for CanSendStoryResult
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