Package it.tdlight.jni
Class TdApi.ReportChat
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.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
this is a private chats with a bot,
a private chat with a user sharing
their location, a supergroup, or a
channel, since other chats can't be
checked by moderators.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description long
chatId
Chat identifier.static int
CONSTRUCTOR
long[]
messageIds
Identifiers of reported messages, if any.TdApi.ChatReportReason
reason
The reason for reporting the chat. -
Constructor Summary
Constructors Constructor Description ReportChat()
Reports a chat to the Telegram moderators.ReportChat(long chatId, TdApi.ChatReportReason reason, long[] messageIds)
Reports a chat to the Telegram moderators.ReportChat(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
-
chatId
public long chatIdChat identifier. -
reason
The reason for reporting the chat. -
messageIds
public long[] messageIdsIdentifiers of reported messages, if any. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
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 this is a private chats with a bot, a private chat with a user sharing their location, a supergroup, or a channel, since other chats can't be checked by moderators.Returns
Ok
-
ReportChat
Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if this is a private chats with a bot, a private chat with a user sharing their location, a supergroup, or a channel, since other chats can't be checked by moderators.Returns
Ok
- Parameters:
chatId
- long Chat identifier.reason
- ChatReportReason The reason for reporting the chat.messageIds
- long[] Identifiers of reported messages, if any.
-
ReportChat
- 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()
-