pub enum BotWriteAccessAllowReason {
ConnectedWebsite(BotWriteAccessAllowReasonConnectedWebsite),
AddedToAttachmentMenu,
LaunchedWebApp(BotWriteAccessAllowReasonLaunchedWebApp),
AcceptedRequest,
}
Variants§
ConnectedWebsite(BotWriteAccessAllowReasonConnectedWebsite)
The user connected a website by logging in using Telegram Login Widget on it
AddedToAttachmentMenu
The user added the bot to attachment or side menu using toggleBotIsAddedToAttachmentMenu
LaunchedWebApp(BotWriteAccessAllowReasonLaunchedWebApp)
The user launched a Web App using getWebAppLinkUrl
AcceptedRequest
The user accepted bot’s request to send messages with allowBotToSendMessages
Trait Implementations§
Source§impl Clone for BotWriteAccessAllowReason
impl Clone for BotWriteAccessAllowReason
Source§fn clone(&self) -> BotWriteAccessAllowReason
fn clone(&self) -> BotWriteAccessAllowReason
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 BotWriteAccessAllowReason
impl Debug for BotWriteAccessAllowReason
Source§impl<'de> Deserialize<'de> for BotWriteAccessAllowReason
impl<'de> Deserialize<'de> for BotWriteAccessAllowReason
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
impl StructuralPartialEq for BotWriteAccessAllowReason
Auto Trait Implementations§
impl Freeze for BotWriteAccessAllowReason
impl RefUnwindSafe for BotWriteAccessAllowReason
impl Send for BotWriteAccessAllowReason
impl Sync for BotWriteAccessAllowReason
impl Unpin for BotWriteAccessAllowReason
impl UnwindSafe for BotWriteAccessAllowReason
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