Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
TD.Data.SuggestedAction
Synopsis
- data SuggestedAction
- = SuggestedActionEnableArchiveAndMuteNewChats
- | SuggestedActionCheckPassword
- | SuggestedActionCheckPhoneNumber
- | SuggestedActionViewChecksHint
- | SuggestedActionConvertToBroadcastGroup { }
- | SuggestedActionSetPassword { }
- | SuggestedActionUpgradePremium
- | SuggestedActionRestorePremium
- | SuggestedActionSubscribeToAnnualPremium
- | SuggestedActionGiftPremiumForChristmas
- | SuggestedActionSetBirthdate
- | SuggestedActionSetProfilePhoto
- | SuggestedActionExtendPremium { }
- | SuggestedActionExtendStarSubscriptions
- | SuggestedActionCustom {
- name :: Maybe Text
- title :: Maybe FormattedText
- description :: Maybe FormattedText
- url :: Maybe Text
Documentation
data SuggestedAction Source #
Describes an action suggested to the current user
Constructors
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 |
Fields
| |
SuggestedActionSetPassword | Suggests the user to set a 2-step verification password to be able to log in again |
Fields
| |
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 |
Fields
| |
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 |
SuggestedActionCustom | A custom suggestion to be shown at the top of the chat list |
Fields
|
Instances
FromJSON SuggestedAction Source # | |
Defined in TD.Data.SuggestedAction Methods parseJSON :: Value -> Parser SuggestedAction # parseJSONList :: Value -> Parser [SuggestedAction] # | |
ToJSON SuggestedAction Source # | |
Defined in TD.Data.SuggestedAction Methods toJSON :: SuggestedAction -> Value # toEncoding :: SuggestedAction -> Encoding # toJSONList :: [SuggestedAction] -> Value # toEncodingList :: [SuggestedAction] -> Encoding # | |
Show SuggestedAction Source # | |
Defined in TD.Data.SuggestedAction Methods showsPrec :: Int -> SuggestedAction -> ShowS # show :: SuggestedAction -> String # showList :: [SuggestedAction] -> ShowS # | |
Eq SuggestedAction Source # | |
Defined in TD.Data.SuggestedAction Methods (==) :: SuggestedAction -> SuggestedAction -> Bool # (/=) :: SuggestedAction -> SuggestedAction -> Bool # | |
ShortShow SuggestedAction Source # | |
Defined in TD.Data.SuggestedAction Methods shortShow :: SuggestedAction -> String Source # |