Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data SuggestedAction
- = SuggestedActionEnableArchiveAndMuteNewChats
- | SuggestedActionCheckPassword
- | SuggestedActionCheckPhoneNumber
- | SuggestedActionViewChecksHint
- | SuggestedActionConvertToBroadcastGroup { }
- | SuggestedActionSetPassword { }
- | SuggestedActionUpgradePremium
- | SuggestedActionRestorePremium
- | SuggestedActionSubscribeToAnnualPremium
- | SuggestedActionGiftPremiumForChristmas
- | SuggestedActionSetBirthdate
- | SuggestedActionSetProfilePhoto
- | SuggestedActionExtendPremium { }
- | SuggestedActionExtendStarSubscriptions
Documentation
data SuggestedAction Source #
Describes an action suggested to the current user
SuggestedActionEnableArchiveAndMuteNewChats | Suggests the user to enable archive_and_mute_new_chats_from_unknown_users setting in archiveChatListSettings |
SuggestedActionCheckPassword | Suggests the user to check whether they still remember their 2-step verification password |
SuggestedActionCheckPhoneNumber | Suggests the user to check whether authorization phone number is correct and change the phone number if it is inaccessible |
SuggestedActionViewChecksHint | Suggests the user to view a hint about the meaning of one and two check marks on sent messages |
SuggestedActionConvertToBroadcastGroup | Suggests the user to convert specified supergroup to a broadcast group |
| |
SuggestedActionSetPassword | Suggests the user to set a 2-step verification password to be able to log in again |
| |
SuggestedActionUpgradePremium | Suggests the user to upgrade the Premium subscription from monthly payments to annual payments |
SuggestedActionRestorePremium | Suggests the user to restore a recently expired Premium subscription |
SuggestedActionSubscribeToAnnualPremium | Suggests the user to subscribe to the Premium subscription with annual payments |
SuggestedActionGiftPremiumForChristmas | Suggests the user to gift Telegram Premium to friends for Christmas |
SuggestedActionSetBirthdate | Suggests the user to set birthdate |
SuggestedActionSetProfilePhoto | Suggests the user to set profile photo |
SuggestedActionExtendPremium | Suggests the user to extend their expiring Telegram Premium subscription |
| |
SuggestedActionExtendStarSubscriptions | Suggests the user to extend their expiring Telegram Star subscriptions. Call getStarSubscriptions with only_expiring == true to get the number of expiring subscriptions and the number of required to buy Telegram Stars |
Instances
FromJSON SuggestedAction Source # | |
Defined in TD.Data.SuggestedAction parseJSON :: Value -> Parser SuggestedAction # parseJSONList :: Value -> Parser [SuggestedAction] # | |
ToJSON SuggestedAction Source # | |
Defined in TD.Data.SuggestedAction toJSON :: SuggestedAction -> Value # toEncoding :: SuggestedAction -> Encoding # toJSONList :: [SuggestedAction] -> Value # toEncodingList :: [SuggestedAction] -> Encoding # | |
Show SuggestedAction Source # | |
Defined in TD.Data.SuggestedAction showsPrec :: Int -> SuggestedAction -> ShowS # show :: SuggestedAction -> String # showList :: [SuggestedAction] -> ShowS # | |
Eq SuggestedAction Source # | |
Defined in TD.Data.SuggestedAction (==) :: SuggestedAction -> SuggestedAction -> Bool # (/=) :: SuggestedAction -> SuggestedAction -> Bool # | |
ShortShow SuggestedAction Source # | |
Defined in TD.Data.SuggestedAction shortShow :: SuggestedAction -> String Source # |