Package org.drinkless.tdlib
Class TdApi.ReportSupergroupAntiSpamFalsePositive
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Ok>
org.drinkless.tdlib.TdApi.ReportSupergroupAntiSpamFalsePositive
- Enclosing class:
- TdApi
Reports a false deletion of a message by aggressive anti-spam checks; requires administrator rights in the supergroup. Can be called only for messages from chatEventMessageDeleted with canReportAntiSpamFalsePositive == true.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.long
Identifier of the erroneously deleted message from chatEventMessageDeleted.long
Supergroup identifier. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which reports a false deletion of a message by aggressive anti-spam checks; requires administrator rights in the supergroup.ReportSupergroupAntiSpamFalsePositive
(long supergroupId, long messageId) Creates a function, which reports a false deletion of a message by aggressive anti-spam checks; requires administrator rights in the supergroup. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
supergroupId
public long supergroupIdSupergroup identifier. -
messageId
public long messageIdIdentifier of the erroneously deleted message from chatEventMessageDeleted. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ReportSupergroupAntiSpamFalsePositive
public ReportSupergroupAntiSpamFalsePositive()Default constructor for a function, which reports a false deletion of a message by aggressive anti-spam checks; requires administrator rights in the supergroup. Can be called only for messages from chatEventMessageDeleted with canReportAntiSpamFalsePositive == true.Returns
Ok
-
ReportSupergroupAntiSpamFalsePositive
public ReportSupergroupAntiSpamFalsePositive(long supergroupId, long messageId) Creates a function, which reports a false deletion of a message by aggressive anti-spam checks; requires administrator rights in the supergroup. Can be called only for messages from chatEventMessageDeleted with canReportAntiSpamFalsePositive == true.Returns
Ok
- Parameters:
supergroupId
- Supergroup identifier.messageId
- Identifier of the erroneously deleted message from chatEventMessageDeleted.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-