Class TdApi.ReportSupergroupSpam
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.ReportSupergroupSpam
- Enclosing class:
- TdApi
Reports messages in a supergroup as spam; requires administrator rights in the supergroup.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.long[]
Identifiers of messages to report.long
Supergroup identifier. -
Constructor Summary
ConstructorDescriptionDefault 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 TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
supergroupId
public long supergroupIdSupergroup identifier. -
messageIds
public long[] messageIdsIdentifiers of messages to report. Use messageProperties.canBeReported 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.canBeReported to check whether the message can be reported.
-
-
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
-