public static class TdApi.ReportChat extends TdApi.Function<TdApi.ReportChatResult>
Returns ReportChatResult
| 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.
|
byte[] |
optionId
Option identifier chosen by the user; leave empty for the initial request.
|
java.lang.String |
text
Additional report details if asked by the server; 0-1024 characters; leave empty for the initial request.
|
| Constructor and Description |
|---|
ReportChat()
Default constructor for a function, which reports a chat to the Telegram moderators.
|
ReportChat(long chatId,
byte[] optionId,
long[] messageIds,
java.lang.String text)
Creates a function, which reports a chat to the Telegram moderators.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public byte[] optionId
public long[] messageIds
public java.lang.String text
public static final int CONSTRUCTOR
public ReportChat()
Returns ReportChatResult
public ReportChat(long chatId,
byte[] optionId,
long[] messageIds,
java.lang.String text)
Returns ReportChatResult
chatId - Chat identifier.optionId - Option identifier chosen by the user; leave empty for the initial request.messageIds - Identifiers of reported messages. Use messageProperties.canReportChat to check whether the message can be reported.text - Additional report details if asked by the server; 0-1024 characters; leave empty for the initial request.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object