pub enum SuggestedAction {
EnableArchiveAndMuteNewChats,
CheckPassword,
CheckPhoneNumber,
ViewChecksHint,
ConvertToBroadcastGroup(SuggestedActionConvertToBroadcastGroup),
SetPassword(SuggestedActionSetPassword),
UpgradePremium,
RestorePremium,
SubscribeToAnnualPremium,
GiftPremiumForChristmas,
SetBirthdate,
ExtendPremium(SuggestedActionExtendPremium),
}
Variants§
EnableArchiveAndMuteNewChats
Suggests the user to enable archive_and_mute_new_chats_from_unknown_users setting in archiveChatListSettings
CheckPassword
Suggests the user to check whether they still remember their 2-step verification password
CheckPhoneNumber
Suggests the user to check whether authorization phone number is correct and change the phone number if it is inaccessible
ViewChecksHint
Suggests the user to view a hint about the meaning of one and two check marks on sent messages
ConvertToBroadcastGroup(SuggestedActionConvertToBroadcastGroup)
Suggests the user to convert specified supergroup to a broadcast group
SetPassword(SuggestedActionSetPassword)
Suggests the user to set a 2-step verification password to be able to log in again
UpgradePremium
Suggests the user to upgrade the Premium subscription from monthly payments to annual payments
RestorePremium
Suggests the user to restore a recently expired Premium subscription
SubscribeToAnnualPremium
Suggests the user to subscribe to the Premium subscription with annual payments
GiftPremiumForChristmas
Suggests the user to gift Telegram Premium to friends for Christmas
SetBirthdate
Suggests the user to set birthdate
ExtendPremium(SuggestedActionExtendPremium)
Suggests the user to extend their expiring Telegram Premium subscription
Trait Implementations§
Source§impl Clone for SuggestedAction
impl Clone for SuggestedAction
Source§fn clone(&self) -> SuggestedAction
fn clone(&self) -> SuggestedAction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more