Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
TD.Data.CanSendStoryResult
Documentation
data CanSendStoryResult Source #
Represents result of checking whether the current user can send a story in the specific chat
Constructors
CanSendStoryResultOk | A story can be sent |
CanSendStoryResultPremiumNeeded | The user must subscribe to Telegram Premium to be able to post stories |
CanSendStoryResultBoostNeeded | The chat must be boosted first by Telegram Premium subscribers to post more stories. Call getChatBoostStatus to get current boost status of the chat |
CanSendStoryResultActiveStoryLimitExceeded | 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 |
CanSendStoryResultWeeklyLimitExceeded | The weekly limit for the number of posted stories exceeded. The user needs to buy Telegram Premium or wait specified time |
Fields
| |
CanSendStoryResultMonthlyLimitExceeded | The monthly limit for the number of posted stories exceeded. The user needs to buy Telegram Premium or wait specified time |
Fields
|
Instances
FromJSON CanSendStoryResult Source # | |
Defined in TD.Data.CanSendStoryResult Methods parseJSON :: Value -> Parser CanSendStoryResult # parseJSONList :: Value -> Parser [CanSendStoryResult] # | |
Show CanSendStoryResult Source # | |
Defined in TD.Data.CanSendStoryResult Methods showsPrec :: Int -> CanSendStoryResult -> ShowS # show :: CanSendStoryResult -> String # showList :: [CanSendStoryResult] -> ShowS # | |
Eq CanSendStoryResult Source # | |
Defined in TD.Data.CanSendStoryResult Methods (==) :: CanSendStoryResult -> CanSendStoryResult -> Bool # (/=) :: CanSendStoryResult -> CanSendStoryResult -> Bool # | |
ShortShow CanSendStoryResult Source # | |
Defined in TD.Data.CanSendStoryResult Methods shortShow :: CanSendStoryResult -> String Source # |