Update layer 85. Add chatReportReasonChildAbuse.

GitOrigin-RevId: b132403bef19cf9e543c930ad4ea4ccc26a6d59a
This commit is contained in:
levlam 2018-12-07 17:20:44 +03:00
parent ccf77c5e01
commit c4c9707f7a
6 changed files with 22 additions and 3 deletions

View File

@ -1920,6 +1920,9 @@ chatReportReasonViolence = ChatReportReason;
//@description The chat contains pornographic messages //@description The chat contains pornographic messages
chatReportReasonPornography = ChatReportReason; chatReportReasonPornography = ChatReportReason;
//@description The chat has child abuse related content
chatReportReasonChildAbuse = ChatReportReason;
//@description The chat contains copyrighted content //@description The chat contains copyrighted content
chatReportReasonCopyright = ChatReportReason; chatReportReasonCopyright = ChatReportReason;

Binary file not shown.

View File

@ -72,8 +72,6 @@ inputDocumentFileLocation#430f0724 id:long access_hash:long version:int = InputF
inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation; inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation;
inputTakeoutFileLocation#29be5899 = InputFileLocation; inputTakeoutFileLocation#29be5899 = InputFileLocation;
inputAppEvent#770656a8 time:double type:string peer:long data:string = InputAppEvent;
peerUser#9db1bc6d user_id:int = Peer; peerUser#9db1bc6d user_id:int = Peer;
peerChat#bad0e5bb chat_id:int = Peer; peerChat#bad0e5bb chat_id:int = Peer;
peerChannel#bddde532 channel_id:int = Peer; peerChannel#bddde532 channel_id:int = Peer;
@ -199,6 +197,7 @@ wallPaperSolid#63117f24 id:int title:string bg_color:int color:int = WallPaper;
inputReportReasonSpam#58dbcab8 = ReportReason; inputReportReasonSpam#58dbcab8 = ReportReason;
inputReportReasonViolence#1e22c78d = ReportReason; inputReportReasonViolence#1e22c78d = ReportReason;
inputReportReasonPornography#2e59d922 = ReportReason; inputReportReasonPornography#2e59d922 = ReportReason;
inputReportReasonChildAbuse#adf44ee3 = ReportReason;
inputReportReasonOther#e1746d0a text:string = ReportReason; inputReportReasonOther#e1746d0a text:string = ReportReason;
inputReportReasonCopyright#9b89f93a = ReportReason; inputReportReasonCopyright#9b89f93a = ReportReason;
@ -920,6 +919,17 @@ secureRequiredTypeOneOf#27477b4 types:Vector<SecureRequiredType> = SecureRequire
help.passportConfigNotModified#bfb9f457 = help.PassportConfig; help.passportConfigNotModified#bfb9f457 = help.PassportConfig;
help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig; help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig;
inputAppEvent#1d1b1245 time:double type:string peer:long data:JSONValue = InputAppEvent;
jsonObjectValue#c0de1bd9 key:string value:JSONValue = JSONObjectValue;
jsonNull#3f6d7b68 = JSONValue;
jsonBool#c7345e6a value:Bool = JSONValue;
jsonNumber#2be0dfa4 value:double = JSONValue;
jsonString#b71e767a value:string = JSONValue;
jsonArray#f7444763 value:Vector<JSONValue> = JSONValue;
jsonObject#99c1d49d value:Vector<JSONObjectValue> = JSONValue;
---functions--- ---functions---
invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X; invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
@ -1133,7 +1143,6 @@ upload.getFileHashes#c7025931 location:InputFileLocation offset:int = Vector<Fil
help.getConfig#c4f9186b = Config; help.getConfig#c4f9186b = Config;
help.getNearestDc#1fb33026 = NearestDc; help.getNearestDc#1fb33026 = NearestDc;
help.getAppUpdate#522d5a7d source:string = help.AppUpdate; help.getAppUpdate#522d5a7d source:string = help.AppUpdate;
help.saveAppLog#6f02f748 events:Vector<InputAppEvent> = Bool;
help.getInviteText#4d392343 = help.InviteText; help.getInviteText#4d392343 = help.InviteText;
help.getSupport#9cdf08cd = help.Support; help.getSupport#9cdf08cd = help.Support;
help.getAppChangelog#9010ef6f prev_app_version:string = Updates; help.getAppChangelog#9010ef6f prev_app_version:string = Updates;
@ -1144,6 +1153,8 @@ help.getProxyData#3d7758e1 = help.ProxyData;
help.getTermsOfServiceUpdate#2ca51fd1 = help.TermsOfServiceUpdate; help.getTermsOfServiceUpdate#2ca51fd1 = help.TermsOfServiceUpdate;
help.acceptTermsOfService#ee72f79a id:DataJSON = Bool; help.acceptTermsOfService#ee72f79a id:DataJSON = Bool;
help.getDeepLinkInfo#3fedc75f path:string = help.DeepLinkInfo; help.getDeepLinkInfo#3fedc75f path:string = help.DeepLinkInfo;
help.getAppConfig#98914110 = JSONValue;
help.saveAppLog#6f02f748 events:Vector<InputAppEvent> = Bool;
help.getPassportConfig#c661ad08 hash:int = help.PassportConfig; help.getPassportConfig#c661ad08 hash:int = help.PassportConfig;
channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool; channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool;

Binary file not shown.

View File

@ -6098,6 +6098,9 @@ void MessagesManager::report_dialog(DialogId dialog_id, const tl_object_ptr<td_a
case td_api::chatReportReasonPornography::ID: case td_api::chatReportReasonPornography::ID:
report_reason = make_tl_object<telegram_api::inputReportReasonPornography>(); report_reason = make_tl_object<telegram_api::inputReportReasonPornography>();
break; break;
case td_api::chatReportReasonChildAbuse::ID:
report_reason = make_tl_object<telegram_api::inputReportReasonChildAbuse>();
break;
case td_api::chatReportReasonCopyright::ID: case td_api::chatReportReasonCopyright::ID:
report_reason = make_tl_object<telegram_api::inputReportReasonCopyright>(); report_reason = make_tl_object<telegram_api::inputReportReasonCopyright>();
break; break;

View File

@ -3328,6 +3328,8 @@ class CliClient final : public Actor {
reason = make_tl_object<td_api::chatReportReasonViolence>(); reason = make_tl_object<td_api::chatReportReasonViolence>();
} else if (reason_str == "porno") { } else if (reason_str == "porno") {
reason = make_tl_object<td_api::chatReportReasonPornography>(); reason = make_tl_object<td_api::chatReportReasonPornography>();
} else if (reason_str == "ca") {
reason = make_tl_object<td_api::chatReportReasonChildAbuse>();
} else if (reason_str == "copyright") { } else if (reason_str == "copyright") {
reason = make_tl_object<td_api::chatReportReasonCopyright>(); reason = make_tl_object<td_api::chatReportReasonCopyright>();
} else { } else {