Package it.tdlight.jni
Class TdApi.ReportSupergroupSpam
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.ReportSupergroupSpam
- Enclosing class:
- TdApi
public static class TdApi.ReportSupergroupSpam extends TdApi.Function
Reports some messages from a user in
a supergroup as spam; requires
administrator rights in the supergroup.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
long[]
messageIds
Identifiers of messages sent in the supergroup by the user.int
supergroupId
Supergroup identifier.int
userId
User identifier. -
Constructor Summary
Constructors Constructor Description ReportSupergroupSpam()
Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup.ReportSupergroupSpam(int supergroupId, int userId, long[] messageIds)
Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup.ReportSupergroupSpam(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
supergroupId
public int supergroupIdSupergroup identifier. -
userId
public int userIdUser identifier. -
messageIds
public long[] messageIdsIdentifiers of messages sent in the supergroup by the user. This list must be non-empty. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
ReportSupergroupSpam
public ReportSupergroupSpam()Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup.Returns
Ok
-
ReportSupergroupSpam
public ReportSupergroupSpam(int supergroupId, int userId, long[] messageIds)Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup.Returns
Ok
- Parameters:
supergroupId
- int Supergroup identifier.userId
- int User identifier.messageIds
- long[] Identifiers of messages sent in the supergroup by the user. This list must be non-empty.
-
ReportSupergroupSpam
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-