Add chatEventIsAggressiveAntiSpamEnabledToggled.

This commit is contained in:
levlam 2022-12-04 12:04:39 +03:00
parent 13fc5a334f
commit 7fdbc4b704
2 changed files with 5 additions and 1 deletions

View File

@ -2997,6 +2997,9 @@ chatEventInvitesToggled can_invite_users:Bool = ChatEventAction;
//@description The is_all_history_available setting of a supergroup was toggled @is_all_history_available New value of is_all_history_available
chatEventIsAllHistoryAvailableToggled is_all_history_available:Bool = ChatEventAction;
//@description The is_aggressive_anti_spam_enabled setting of a supergroup was toggled @is_aggressive_anti_spam_enabled New value of is_aggressive_anti_spam_enabled
chatEventIsAggressiveAntiSpamEnabledToggled is_aggressive_anti_spam_enabled:Bool = ChatEventAction;
//@description The sign_messages setting of a channel was toggled @sign_messages New value of sign_messages
chatEventSignMessagesToggled sign_messages:Bool = ChatEventAction;

View File

@ -418,7 +418,8 @@ static td_api::object_ptr<td_api::ChatEventAction> get_chat_event_action_object(
new_topic_info.get_forum_topic_info_object(td));
}
case telegram_api::channelAdminLogEventActionToggleAntiSpam::ID: {
return nullptr;
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionToggleAntiSpam>(action_ptr);
return td_api::make_object<td_api::chatEventIsAggressiveAntiSpamEnabledToggled>(action->new_value_);
}
default:
UNREACHABLE();