Add chatEventLogFilters.forum_changes.

This commit is contained in:
levlam 2022-10-17 20:33:39 +03:00
parent 87b3d9415c
commit 6cff780af9
2 changed files with 5 additions and 1 deletions

View File

@ -3012,7 +3012,8 @@ chatEvents events:vector<chatEvent> = ChatEvents;
//@setting_changes True, if changes in chat settings need to be returned
//@invite_link_changes True, if changes to invite links need to be returned
//@video_chat_changes True, if video chat actions need to be returned
chatEventLogFilters message_edits:Bool message_deletions:Bool message_pins:Bool member_joins:Bool member_leaves:Bool member_invites:Bool member_promotions:Bool member_restrictions:Bool info_changes:Bool setting_changes:Bool invite_link_changes:Bool video_chat_changes:Bool = ChatEventLogFilters;
//@forum_changes True, if forum-related actions need to be returned
chatEventLogFilters message_edits:Bool message_deletions:Bool message_pins:Bool member_joins:Bool member_leaves:Bool member_invites:Bool member_promotions:Bool member_restrictions:Bool info_changes:Bool setting_changes:Bool invite_link_changes:Bool video_chat_changes:Bool forum_changes:Bool = ChatEventLogFilters;
//@class LanguagePackStringValue @description Represents the value of a string in a language pack

View File

@ -537,6 +537,9 @@ static telegram_api::object_ptr<telegram_api::channelAdminLogEventsFilter> get_i
if (filters->video_chat_changes_) {
flags |= telegram_api::channelAdminLogEventsFilter::GROUP_CALL_MASK;
}
if (filters->forum_changes_) {
flags |= telegram_api::channelAdminLogEventsFilter::FORUMS_MASK;
}
return telegram_api::make_object<telegram_api::channelAdminLogEventsFilter>(
flags, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/,