Package it.tdlight.jni
Class TdApi.ReportChat
- Enclosing class:
- TdApi
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
Modifier and TypeFieldDescriptionlong
Chat identifier.static final int
long[]
Identifiers of reported messages, if any.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) -
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, if any. -
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 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()
-