Package org.drinkless.tdlib
Class TdApi.ReportSupergroupSpam
- Enclosing class:
- TdApi
Reports messages in a supergroup as spam; requires administrator rights in the supergroup.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.long[]Identifiers of messages to report.longSupergroup identifier. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which reports messages in a supergroup as spam; requires administrator rights in the supergroup.ReportSupergroupSpam(long supergroupId, long[] messageIds) Creates a function, which reports messages in a supergroup as spam; requires administrator rights in the supergroup. -
Method Summary
Modifier and TypeMethodDescriptionintReturns 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. -
messageIds
public long[] messageIdsIdentifiers of messages to report. Use messageProperties.canReportSupergroupSpam to check whether the message can be reported. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ReportSupergroupSpam
public ReportSupergroupSpam()Default constructor for a function, which reports messages in a supergroup as spam; requires administrator rights in the supergroup.Returns
Ok -
ReportSupergroupSpam
public ReportSupergroupSpam(long supergroupId, long[] messageIds) Creates a function, which reports messages in a supergroup as spam; requires administrator rights in the supergroup.Returns
Ok- Parameters:
supergroupId- Supergroup identifier.messageIds- Identifiers of messages to report. Use messageProperties.canReportSupergroupSpam to check whether the message can be reported.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-