diff --git a/Telegram/SourceFiles/api/api_updates.cpp b/Telegram/SourceFiles/api/api_updates.cpp index 23aad8641f..2454724110 100644 --- a/Telegram/SourceFiles/api/api_updates.cpp +++ b/Telegram/SourceFiles/api/api_updates.cpp @@ -1145,7 +1145,8 @@ void Updates::applyUpdatesNoPtsCheck(const MTPUpdates &updates) { MTPint(), // report_delivery_until_date MTPlong(), // paid_message_stars MTPSuggestedPost(), - MTPint()), // schedule_repeat_period + MTPint(), // schedule_repeat_period + MTPstring()), // summary_from_language MessageFlags(), NewMessageType::Unread); } break; @@ -1186,7 +1187,8 @@ void Updates::applyUpdatesNoPtsCheck(const MTPUpdates &updates) { MTPint(), // report_delivery_until_date MTPlong(), // paid_message_stars MTPSuggestedPost(), - MTPint()), // schedule_repeat_period + MTPint(), // schedule_repeat_period + MTPstring()), // summary_from_language MessageFlags(), NewMessageType::Unread); } break; diff --git a/Telegram/SourceFiles/data/business/data_shortcut_messages.cpp b/Telegram/SourceFiles/data/business/data_shortcut_messages.cpp index b9ac9c665f..259f38cb96 100644 --- a/Telegram/SourceFiles/data/business/data_shortcut_messages.cpp +++ b/Telegram/SourceFiles/data/business/data_shortcut_messages.cpp @@ -97,7 +97,8 @@ constexpr auto kRequestTimeLimit = 60 * crl::time(1000); (data.vsuggested_post() ? *data.vsuggested_post() : MTPSuggestedPost()), - MTP_int(data.vschedule_repeat_period().value_or_empty())); + MTP_int(data.vschedule_repeat_period().value_or_empty()), + MTP_string(qs(data.vsummary_from_language().value_or_empty()))); }); } diff --git a/Telegram/SourceFiles/data/components/scheduled_messages.cpp b/Telegram/SourceFiles/data/components/scheduled_messages.cpp index ca455a0645..ba5059df46 100644 --- a/Telegram/SourceFiles/data/components/scheduled_messages.cpp +++ b/Telegram/SourceFiles/data/components/scheduled_messages.cpp @@ -101,7 +101,8 @@ constexpr auto kRequestTimeLimit = 60 * crl::time(1000); (data.vsuggested_post() ? *data.vsuggested_post() : MTPSuggestedPost()), - MTP_int(data.vschedule_repeat_period().value_or_empty())); + MTP_int(data.vschedule_repeat_period().value_or_empty()), + MTP_string(qs(data.vsummary_from_language().value_or_empty()))); }); } @@ -278,7 +279,8 @@ void ScheduledMessages::sendNowSimpleMessage( MTPint(), // report_delivery_until_date MTPlong(), // paid_message_stars MTPSuggestedPost(), - MTPint()), // schedule_repeat_period + MTPint(), // schedule_repeat_period + MTPstring()), // summary_from_language localFlags, NewMessageType::Unread); diff --git a/Telegram/SourceFiles/data/data_session.cpp b/Telegram/SourceFiles/data/data_session.cpp index e4f7e64e08..dbc517c806 100644 --- a/Telegram/SourceFiles/data/data_session.cpp +++ b/Telegram/SourceFiles/data/data_session.cpp @@ -5133,7 +5133,8 @@ void Session::insertCheckedServiceNotification( MTPint(), // report_delivery_until_date MTPlong(), // paid_message_stars MTPSuggestedPost(), - MTPint()), // schedule_repeat_period + MTPint(), // schedule_repeat_period + MTPstring()), // summary_from_language localFlags, NewMessageType::Unread); } diff --git a/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp b/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp index cc054c1693..0971959fab 100644 --- a/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp +++ b/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp @@ -165,7 +165,8 @@ MTPMessage PrepareLogMessage(const MTPMessage &message, TimeId newDate) { | Flag::f_ttl_period | Flag::f_factcheck | Flag::f_report_delivery_until_date - | Flag::f_suggested_post; + | Flag::f_suggested_post + | Flag::f_summary_from_language; return MTP_message( MTP_flags(data.vflags().v & ~removeFlags), data.vid(), @@ -199,7 +200,8 @@ MTPMessage PrepareLogMessage(const MTPMessage &message, TimeId newDate) { MTPint(), // report_delivery_until_date MTP_long(data.vpaid_message_stars().value_or_empty()), MTPSuggestedPost(), - MTPint()); // schedule_repeat_period + MTPint(), // schedule_repeat_period + MTPstring()); // summary_from_language }); } diff --git a/Telegram/SourceFiles/mtproto/scheme/api.tl b/Telegram/SourceFiles/mtproto/scheme/api.tl index edc792ee97..a249507623 100644 --- a/Telegram/SourceFiles/mtproto/scheme/api.tl +++ b/Telegram/SourceFiles/mtproto/scheme/api.tl @@ -118,7 +118,7 @@ chatPhotoEmpty#37c1011c = ChatPhoto; chatPhoto#1c6e1c11 flags:# has_video:flags.0?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = ChatPhoto; messageEmpty#90a6ca84 flags:# id:int peer_id:flags.0?Peer = Message; -message#b92f76cf flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true noforwards:flags.26?true invert_media:flags.27?true flags2:# offline:flags2.1?true video_processing_pending:flags2.4?true paid_suggested_post_stars:flags2.8?true paid_suggested_post_ton:flags2.9?true id:int from_id:flags.8?Peer from_boosts_applied:flags.29?int peer_id:Peer saved_peer_id:flags.28?Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long via_business_bot_id:flags2.0?long reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector ttl_period:flags.25?int quick_reply_shortcut_id:flags.30?int effect:flags2.2?long factcheck:flags2.3?FactCheck report_delivery_until_date:flags2.5?int paid_message_stars:flags2.6?long suggested_post:flags2.7?SuggestedPost schedule_repeat_period:flags2.10?int = Message; +message#9cb490e9 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true noforwards:flags.26?true invert_media:flags.27?true flags2:# offline:flags2.1?true video_processing_pending:flags2.4?true paid_suggested_post_stars:flags2.8?true paid_suggested_post_ton:flags2.9?true id:int from_id:flags.8?Peer from_boosts_applied:flags.29?int peer_id:Peer saved_peer_id:flags.28?Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long via_business_bot_id:flags2.0?long reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector ttl_period:flags.25?int quick_reply_shortcut_id:flags.30?int effect:flags2.2?long factcheck:flags2.3?FactCheck report_delivery_until_date:flags2.5?int paid_message_stars:flags2.6?long suggested_post:flags2.7?SuggestedPost schedule_repeat_period:flags2.10?int summary_from_language:flags2.11?string = Message; messageService#7a800e0a flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true reactions_are_possible:flags.9?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer saved_peer_id:flags.28?Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction reactions:flags.20?MessageReactions ttl_period:flags.25?int = Message; messageMediaEmpty#3ded6320 = MessageMedia; @@ -2553,6 +2553,7 @@ messages.reorderPinnedForumTopics#e7841f0 flags:# force:flags.0?true peer:InputP messages.createForumTopic#2f98c3d5 flags:# title_missing:flags.4?true peer:InputPeer title:string icon_color:flags.0?int icon_emoji_id:flags.3?long random_id:long send_as:flags.2?InputPeer = Updates; messages.deleteTopicHistory#d2816f10 peer:InputPeer top_msg_id:int = messages.AffectedHistory; messages.getEmojiGameInfo#fb7e8ca7 = messages.EmojiGameInfo; +messages.summarizeText#9d4104e2 flags:# peer:InputPeer id:int to_lang:flags.0?string = TextWithEntities; updates.getState#edd4882a = updates.State; updates.getDifference#19c2f763 flags:# pts:int pts_limit:flags.1?int pts_total_limit:flags.0?int date:int qts:int qts_limit:flags.2?int = updates.Difference; diff --git a/Telegram/SourceFiles/settings/settings_privacy_controllers.cpp b/Telegram/SourceFiles/settings/settings_privacy_controllers.cpp index 562f986c91..5ff01ed465 100644 --- a/Telegram/SourceFiles/settings/settings_privacy_controllers.cpp +++ b/Telegram/SourceFiles/settings/settings_privacy_controllers.cpp @@ -206,7 +206,8 @@ AdminLog::OwnedItem GenerateForwardedItem( MTPint(), // report_delivery_until_date MTPlong(), // paid_message_stars MTPSuggestedPost(), - MTPint() // schedule_repeat_period + MTPint(), // schedule_repeat_period + MTPstring() // summary_from_language ).match([&](const MTPDmessage &data) { return history->makeMessage( history->nextNonHistoryEntryId(),