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 chat 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.String
text
Additional report details; 0-1024 characters. -
Constructor Summary
Constructors Constructor Description ReportChat()
Reports 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)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput 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. -
messageIds
public long[] messageIdsIdentifiers of reported messages, if any. -
reason
The reason for reporting the chat. -
text
Additional report details; 0-1024 characters. -
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 chat 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 chat 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.messageIds
- long[] Identifiers of reported messages, if any.reason
- ChatReportReason The reason for reporting the chat.text
- String Additional report details; 0-1024 characters.
-
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()
-