- Enclosing class:
- TdApi
Reports a chat to the Telegram
moderators. A chat can be reported
only from the chat action bar, or if chat.canBeReported.
Returns
Ok
-
Field Summary
Modifier and TypeFieldDescriptionlong
Chat identifier.static final int
long[]
Identifiers of reported messages; may be empty to report the whole chat.The reason for reporting the chat.Additional report details; 0-1024 characters. -
Constructor Summary
ConstructorDescriptionReports a chat to the Telegram moderators.ReportChat
(long chatId, long[] messageIds, TdApi.ChatReportReason reason, String text) Reports a chat to the Telegram moderators.ReportChat
(DataInput input) Reports a chat to the Telegram moderators. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdChat identifier. -
messageIds
public long[] messageIdsIdentifiers of reported messages; may be empty to report the whole chat. -
reason
The reason for reporting the chat. -
text
Additional report details; 0-1024 characters. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
ReportChat
public ReportChat()Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.canBeReported. ReturnsOk
-
ReportChat
Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.canBeReported. ReturnsOk
- Parameters:
chatId
- long Chat identifier.messageIds
- long[] Identifiers of reported messages; may be empty to report the whole chat.reason
- ChatReportReason The reason for reporting the chat.text
- String Additional report details; 0-1024 characters.
-
ReportChat
Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.canBeReported. ReturnsOk
- 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()
-