haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.SuggestedAction

Synopsis

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

  • authorization_delay :: Maybe Int

    The number of days to pass between consecutive authorizations if the user declines to set password; if 0, then the user is advised to set the password for security reasons

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

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