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