- Enclosing class:
- TdApi
Reports a chat photo to the Telegram
moderators. A chat photo can be reported
only if chat.canBeReported.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionlong
Chat identifier.static final int
int
Identifier of the photo to report.The reason for reporting the chat photo.Additional report details; 0-1024 characters. -
Constructor Summary
ConstructorDescriptionReports a chat photo to the Telegram moderators.ReportChatPhoto
(long chatId, int fileId, TdApi.ChatReportReason reason, String text) Reports a chat photo to the Telegram moderators.ReportChatPhoto
(DataInput input) Reports a chat photo 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. -
fileId
public int fileIdIdentifier of the photo to report. Only full photos from chatPhoto can be reported. -
reason
The reason for reporting the chat photo. -
text
Additional report details; 0-1024 characters. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
ReportChatPhoto
public ReportChatPhoto()Reports a chat photo to the Telegram moderators. A chat photo can be reported only if chat.canBeReported.Returns
Ok
-
ReportChatPhoto
Reports a chat photo to the Telegram moderators. A chat photo can be reported only if chat.canBeReported.Returns
Ok
- Parameters:
chatId
- long Chat identifier.fileId
- int Identifier of the photo to report. Only full photos from chatPhoto can be reported.reason
- ChatReportReason The reason for reporting the chat photo.text
- String Additional report details; 0-1024 characters.
-
ReportChatPhoto
Reports a chat photo to the Telegram moderators. A chat photo can be reported only if chat.canBeReported.Returns
Ok
- 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()
-