Package org.drinkless.tdlib
Class TdApi.ReportChat
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.ReportChat
-
- Enclosing class:
- TdApi
public static class TdApi.ReportChat extends TdApi.Function
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
Fields Modifier and Type Field Description longchatIdChat identifier.static intCONSTRUCTORIdentifier uniquely determining type of the object.long[]messageIdsIdentifiers of reported messages, if any.TdApi.ChatReportReasonreasonThe reason for reporting the chat.StringtextAdditional report details; 0-1024 characters.
-
Constructor Summary
Constructors Constructor Description ReportChat()Default constructor for a function, which reports a chat to the Telegram moderators.ReportChat(long chatId, long[] messageIds, TdApi.ChatReportReason reason, String text)Creates a function, which reports a chat to the Telegram moderators.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
chatId
public long chatId
Chat identifier.
-
messageIds
public long[] messageIds
Identifiers of reported messages, if any.
-
reason
public TdApi.ChatReportReason reason
The reason for reporting the chat.
-
text
public String text
Additional report details; 0-1024 characters.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReportChat
public ReportChat()
Default constructor for a function, which reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.canBeReported.Returns
Ok
-
ReportChat
public ReportChat(long chatId, long[] messageIds, TdApi.ChatReportReason reason, String text)Creates a function, which reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.canBeReported.Returns
Ok- Parameters:
chatId- Chat identifier.messageIds- Identifiers of reported messages, if any.reason- The reason for reporting the chat.text- Additional report details; 0-1024 characters.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-