Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
TD.Data.BotWriteAccessAllowReason
Documentation
data BotWriteAccessAllowReason Source #
Describes a reason why a bot was allowed to write messages to the current user
Constructors
BotWriteAccessAllowReasonConnectedWebsite | The user connected a website by logging in using Telegram Login Widget on it |
Fields
| |
BotWriteAccessAllowReasonAddedToAttachmentMenu | The user added the bot to attachment or side menu using toggleBotIsAddedToAttachmentMenu |
BotWriteAccessAllowReasonLaunchedWebApp | The user launched a Web App using getWebAppLinkUrl |
BotWriteAccessAllowReasonAcceptedRequest | The user accepted bot's request to send messages with allowBotToSendMessages |
Instances
FromJSON BotWriteAccessAllowReason Source # | |
Defined in TD.Data.BotWriteAccessAllowReason Methods parseJSON :: Value -> Parser BotWriteAccessAllowReason # parseJSONList :: Value -> Parser [BotWriteAccessAllowReason] # | |
Show BotWriteAccessAllowReason Source # | |
Defined in TD.Data.BotWriteAccessAllowReason Methods showsPrec :: Int -> BotWriteAccessAllowReason -> ShowS # show :: BotWriteAccessAllowReason -> String # showList :: [BotWriteAccessAllowReason] -> ShowS # | |
Eq BotWriteAccessAllowReason Source # | |
Defined in TD.Data.BotWriteAccessAllowReason Methods (==) :: BotWriteAccessAllowReason -> BotWriteAccessAllowReason -> Bool # (/=) :: BotWriteAccessAllowReason -> BotWriteAccessAllowReason -> Bool # | |
ShortShow BotWriteAccessAllowReason Source # | |
Defined in TD.Data.BotWriteAccessAllowReason Methods |