From 707f83e755b400be86ccb4671b60b9646f5e50c1 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 8 Dec 2020 18:42:31 +0300 Subject: [PATCH] Add voice_chat_changes chat log event filter. --- td/generate/scheme/td_api.tl | 3 ++- td/generate/scheme/td_api.tlo | Bin 190092 -> 190136 bytes td/generate/scheme/telegram_api.tl | 2 +- td/generate/scheme/telegram_api.tlo | Bin 223976 -> 224020 bytes td/telegram/MessagesManager.cpp | 5 ++++- 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 4917fec94..0b6c55ebb 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -2393,7 +2393,8 @@ chatEvents events:vector = ChatEvents; //@member_restrictions True, if member restricted/unrestricted/banned/unbanned events should be returned //@info_changes True, if changes in chat information should be returned //@setting_changes True, if changes in chat settings should 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 = ChatEventLogFilters; +//@voice_chat_changes True, if voice chat actionss should 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 voice_chat_changes:Bool = ChatEventLogFilters; //@class LanguagePackStringValue @description Represents the value of a string in a language pack diff --git a/td/generate/scheme/td_api.tlo b/td/generate/scheme/td_api.tlo index baab9dc152219ae4d435e3612b1a1cdc58cd7f0a..2b4c9dc797110fa56e31411ba572c01c77dbd590 100644 GIT binary patch delta 122 zcmeA<%e~_)_XZty7V+gzbvGNZPsmUNv4oQ|5=&gmQu9iD^3&Zib4pT+ib3Kxj|us3 zZ+@6RpK*Et7bB}cS$<}6YCK3Wh{#Kye6T=#vVbE8*tq7N!tFhUjAvegdD9it7(FI` NC=}SfC7S6*7XXoPF!KNa delta 92 zcmdmSmb>RH_XZtymM6DWEH)dkPsmUNv4oQ|5=&gmQu9iD^3&Zib4pT+ib3Kxj|us3 nZGM=kyae;6`=~K`Y`+lA^r8y@3z8?E diff --git a/td/generate/scheme/telegram_api.tl b/td/generate/scheme/telegram_api.tl index eb2b069bc..d2a9e3c42 100644 --- a/td/generate/scheme/telegram_api.tl +++ b/td/generate/scheme/telegram_api.tl @@ -876,7 +876,7 @@ channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLo channels.adminLogResults#ed8af74d events:Vector chats:Vector users:Vector = channels.AdminLogResults; -channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true = ChannelAdminLogEventsFilter; +channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true group_call:flags.14?true = ChannelAdminLogEventsFilter; popularContact#5ce14175 client_id:long importers:int = PopularContact; diff --git a/td/generate/scheme/telegram_api.tlo b/td/generate/scheme/telegram_api.tlo index e5149b465c7bfbc5b9e9fa7bdaad1c576c7d912a..b82d2a66b4b6d1619e1e4a0aa818f034576524b3 100644 GIT binary patch delta 56 zcmaEHm3PWD-VGU%lS?dhHcyGvVVZoQpOrhkD8IBIJ~=Tbhhh2wHYS-VGU%lS8KJY@QOS!!$jhpOK^aOLY5}XhtAr+WsY)S%Dt_dyo-f diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 50e940e4d..196bd20e6 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -30520,11 +30520,14 @@ tl_object_ptr MessagesManager::get_ch if (filters->setting_changes_) { flags |= telegram_api::channelAdminLogEventsFilter::SETTINGS_MASK; } + if (filters->voice_chat_changes_) { + flags |= telegram_api::channelAdminLogEventsFilter::GROUP_CALL_MASK; + } return make_tl_object( flags, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, - false /*ignored*/, false /*ignored*/, false /*ignored*/); + false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/); } int64 MessagesManager::get_dialog_event_log(DialogId dialog_id, const string &query, int64 from_event_id, int32 limit,