public static class TdApi.ReportChat extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
long |
chatId
Chat identifier.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long[] |
messageIds
Identifiers of reported messages, if any.
|
TdApi.ChatReportReason |
reason
The reason for reporting the chat.
|
java.lang.String |
text
Additional report details; 0-1024 characters.
|
Constructor and Description |
---|
ReportChat()
Default constructor for a function, which reports a chat to the Telegram moderators.
|
ReportChat(long chatId,
long[] messageIds,
TdApi.ChatReportReason reason,
java.lang.String text)
Creates a function, which reports a chat to the Telegram moderators.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long chatId
public long[] messageIds
public TdApi.ChatReportReason reason
public java.lang.String text
public static final int CONSTRUCTOR
public ReportChat()
Returns Ok
public ReportChat(long chatId, long[] messageIds, TdApi.ChatReportReason reason, java.lang.String text)
Returns Ok
chatId
- Chat identifier.messageIds
- Identifiers of reported messages, if any.reason
- The reason for reporting the chat.text
- Additional report details; 0-1024 characters.public int getConstructor()
getConstructor
in class TdApi.Function