public static class TdApi.ReportSupergroupSpam extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long[] |
messageIds
Identifiers of messages to report.
|
long |
supergroupId
Supergroup identifier.
|
| Constructor and Description |
|---|
ReportSupergroupSpam()
Default 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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long supergroupId
public long[] messageIds
public static final int CONSTRUCTOR
public ReportSupergroupSpam()
Returns Ok
public ReportSupergroupSpam(long supergroupId,
long[] messageIds)
Returns Ok
supergroupId - Supergroup identifier.messageIds - Identifiers of messages to report. Use messageProperties.canReportSupergroupSpam to check whether the message can be reported.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object