pub enum MessageAction {
Show 68 variants
Empty,
ChatCreate(MessageActionChatCreate),
ChatEditTitle(MessageActionChatEditTitle),
ChatEditPhoto(MessageActionChatEditPhoto),
ChatDeletePhoto,
ChatAddUser(MessageActionChatAddUser),
ChatDeleteUser(MessageActionChatDeleteUser),
ChatJoinedByLink(MessageActionChatJoinedByLink),
ChannelCreate(MessageActionChannelCreate),
ChatMigrateTo(MessageActionChatMigrateTo),
ChannelMigrateFrom(MessageActionChannelMigrateFrom),
PinMessage,
HistoryClear,
GameScore(MessageActionGameScore),
PaymentSentMe(MessageActionPaymentSentMe),
PaymentSent(MessageActionPaymentSent),
PhoneCall(MessageActionPhoneCall),
ScreenshotTaken,
CustomAction(MessageActionCustomAction),
BotAllowed(MessageActionBotAllowed),
SecureValuesSentMe(MessageActionSecureValuesSentMe),
SecureValuesSent(MessageActionSecureValuesSent),
ContactSignUp,
GeoProximityReached(MessageActionGeoProximityReached),
GroupCall(MessageActionGroupCall),
InviteToGroupCall(MessageActionInviteToGroupCall),
SetMessagesTtl(MessageActionSetMessagesTtl),
GroupCallScheduled(MessageActionGroupCallScheduled),
SetChatTheme(MessageActionSetChatTheme),
ChatJoinedByRequest,
WebViewDataSentMe(MessageActionWebViewDataSentMe),
WebViewDataSent(MessageActionWebViewDataSent),
GiftPremium(MessageActionGiftPremium),
TopicCreate(MessageActionTopicCreate),
TopicEdit(MessageActionTopicEdit),
SuggestProfilePhoto(MessageActionSuggestProfilePhoto),
RequestedPeer(MessageActionRequestedPeer),
SetChatWallPaper(MessageActionSetChatWallPaper),
GiftCode(MessageActionGiftCode),
GiveawayLaunch(MessageActionGiveawayLaunch),
GiveawayResults(MessageActionGiveawayResults),
BoostApply(MessageActionBoostApply),
RequestedPeerSentMe(MessageActionRequestedPeerSentMe),
PaymentRefunded(MessageActionPaymentRefunded),
GiftStars(MessageActionGiftStars),
PrizeStars(MessageActionPrizeStars),
StarGift(MessageActionStarGift),
StarGiftUnique(MessageActionStarGiftUnique),
PaidMessagesRefunded(MessageActionPaidMessagesRefunded),
PaidMessagesPrice(MessageActionPaidMessagesPrice),
ConferenceCall(MessageActionConferenceCall),
TodoCompletions(MessageActionTodoCompletions),
TodoAppendTasks(MessageActionTodoAppendTasks),
SuggestedPostApproval(MessageActionSuggestedPostApproval),
SuggestedPostSuccess(MessageActionSuggestedPostSuccess),
SuggestedPostRefund(MessageActionSuggestedPostRefund),
GiftTon(MessageActionGiftTon),
SuggestBirthday(MessageActionSuggestBirthday),
StarGiftPurchaseOffer(MessageActionStarGiftPurchaseOffer),
StarGiftPurchaseOfferDeclined(MessageActionStarGiftPurchaseOfferDeclined),
NewCreatorPending(MessageActionNewCreatorPending),
ChangeCreator(MessageActionChangeCreator),
NoForwardsToggle(MessageActionNoForwardsToggle),
NoForwardsRequest(MessageActionNoForwardsRequest),
PollAppendAnswer(MessageActionPollAppendAnswer),
PollDeleteAnswer(MessageActionPollDeleteAnswer),
ManagedBotCreated(MessageActionManagedBotCreated),
ChangeCommunity(MessageActionChangeCommunity),
}Expand description
Variants§
Empty
ChatCreate(MessageActionChatCreate)
ChatEditTitle(MessageActionChatEditTitle)
ChatEditPhoto(MessageActionChatEditPhoto)
ChatDeletePhoto
ChatAddUser(MessageActionChatAddUser)
ChatDeleteUser(MessageActionChatDeleteUser)
ChatJoinedByLink(MessageActionChatJoinedByLink)
ChannelCreate(MessageActionChannelCreate)
ChatMigrateTo(MessageActionChatMigrateTo)
ChannelMigrateFrom(MessageActionChannelMigrateFrom)
PinMessage
HistoryClear
GameScore(MessageActionGameScore)
PaymentSentMe(MessageActionPaymentSentMe)
PaymentSent(MessageActionPaymentSent)
PhoneCall(MessageActionPhoneCall)
ScreenshotTaken
CustomAction(MessageActionCustomAction)
BotAllowed(MessageActionBotAllowed)
SecureValuesSentMe(MessageActionSecureValuesSentMe)
SecureValuesSent(MessageActionSecureValuesSent)
ContactSignUp
GeoProximityReached(MessageActionGeoProximityReached)
GroupCall(MessageActionGroupCall)
InviteToGroupCall(MessageActionInviteToGroupCall)
SetMessagesTtl(MessageActionSetMessagesTtl)
GroupCallScheduled(MessageActionGroupCallScheduled)
SetChatTheme(MessageActionSetChatTheme)
ChatJoinedByRequest
WebViewDataSentMe(MessageActionWebViewDataSentMe)
WebViewDataSent(MessageActionWebViewDataSent)
GiftPremium(MessageActionGiftPremium)
TopicCreate(MessageActionTopicCreate)
TopicEdit(MessageActionTopicEdit)
SuggestProfilePhoto(MessageActionSuggestProfilePhoto)
RequestedPeer(MessageActionRequestedPeer)
SetChatWallPaper(MessageActionSetChatWallPaper)
GiftCode(MessageActionGiftCode)
GiveawayLaunch(MessageActionGiveawayLaunch)
GiveawayResults(MessageActionGiveawayResults)
BoostApply(MessageActionBoostApply)
RequestedPeerSentMe(MessageActionRequestedPeerSentMe)
PaymentRefunded(MessageActionPaymentRefunded)
GiftStars(MessageActionGiftStars)
PrizeStars(MessageActionPrizeStars)
StarGift(MessageActionStarGift)
StarGiftUnique(MessageActionStarGiftUnique)
PaidMessagesRefunded(MessageActionPaidMessagesRefunded)
PaidMessagesPrice(MessageActionPaidMessagesPrice)
ConferenceCall(MessageActionConferenceCall)
TodoCompletions(MessageActionTodoCompletions)
TodoAppendTasks(MessageActionTodoAppendTasks)
SuggestedPostApproval(MessageActionSuggestedPostApproval)
SuggestedPostSuccess(MessageActionSuggestedPostSuccess)
SuggestedPostRefund(MessageActionSuggestedPostRefund)
GiftTon(MessageActionGiftTon)
SuggestBirthday(MessageActionSuggestBirthday)
StarGiftPurchaseOffer(MessageActionStarGiftPurchaseOffer)
StarGiftPurchaseOfferDeclined(MessageActionStarGiftPurchaseOfferDeclined)
NewCreatorPending(MessageActionNewCreatorPending)
ChangeCreator(MessageActionChangeCreator)
NoForwardsToggle(MessageActionNoForwardsToggle)
NoForwardsRequest(MessageActionNoForwardsRequest)
PollAppendAnswer(MessageActionPollAppendAnswer)
PollDeleteAnswer(MessageActionPollDeleteAnswer)
ManagedBotCreated(MessageActionManagedBotCreated)
ChangeCommunity(MessageActionChangeCommunity)
Implementations§
Source§impl MessageAction
impl MessageAction
Sourcepub fn recurring_init(&self) -> Option<&bool>
pub fn recurring_init(&self) -> Option<&bool>
Returns recurring_init if present in this variant.
Sourcepub fn recurring_used(&self) -> Option<&bool>
pub fn recurring_used(&self) -> Option<&bool>
Returns recurring_used if present in this variant.
Sourcepub fn total_amount(&self) -> Option<&i64>
pub fn total_amount(&self) -> Option<&i64>
Returns total_amount if present in this variant.
Sourcepub fn charge(&self) -> Option<&PaymentCharge>
pub fn charge(&self) -> Option<&PaymentCharge>
Returns charge if present in this variant.
Sourcepub fn subscription_until_date(&self) -> Option<&i32>
pub fn subscription_until_date(&self) -> Option<&i32>
Returns subscription_until_date if present in this variant.
Sourcepub fn call(&self) -> Option<&InputGroupCall>
pub fn call(&self) -> Option<&InputGroupCall>
Returns call if present in this variant.
Sourcepub fn schedule_date(&self) -> Option<&i32>
pub fn schedule_date(&self) -> Option<&i32>
Returns schedule_date if present in this variant.
Sourcepub fn crypto_currency(&self) -> Option<&String>
pub fn crypto_currency(&self) -> Option<&String>
Returns crypto_currency if present in this variant.
Sourcepub fn crypto_amount(&self) -> Option<&i64>
pub fn crypto_amount(&self) -> Option<&i64>
Returns crypto_amount if present in this variant.
Sourcepub fn icon_emoji_id(&self) -> Option<&i64>
pub fn icon_emoji_id(&self) -> Option<&i64>
Returns icon_emoji_id if present in this variant.
Returns button_id if present in this variant.
Sourcepub fn boost_peer(&self) -> Option<&Peer>
pub fn boost_peer(&self) -> Option<&Peer>
Returns boost_peer if present in this variant.
Sourcepub fn transaction_id(&self) -> Option<&String>
pub fn transaction_id(&self) -> Option<&String>
Returns transaction_id if present in this variant.
Sourcepub fn prepaid_upgrade(&self) -> Option<&bool>
pub fn prepaid_upgrade(&self) -> Option<&bool>
Returns prepaid_upgrade if present in this variant.
Sourcepub fn price(&self) -> Option<&StarsAmount>
pub fn price(&self) -> Option<&StarsAmount>
Returns price if present in this variant.
Sourcepub fn new_creator_id(&self) -> Option<&i64>
pub fn new_creator_id(&self) -> Option<&i64>
Returns new_creator_id if present in this variant.
Sourcepub fn prev_value(&self) -> Option<&bool>
pub fn prev_value(&self) -> Option<&bool>
Returns prev_value if present in this variant.
Sourcepub fn answer(&self) -> Option<&PollAnswer>
pub fn answer(&self) -> Option<&PollAnswer>
Returns answer if present in this variant.
Trait Implementations§
Source§impl Clone for MessageAction
impl Clone for MessageAction
Source§fn clone(&self) -> MessageAction
fn clone(&self) -> MessageAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MessageAction
impl Debug for MessageAction
Source§impl Deserializable for MessageAction
impl Deserializable for MessageAction
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Self from buf, advancing its position.