Package it.tdlight.jni
Class TdApi.ReportChatPhoto
- Enclosing class:
- TdApi
public static class TdApi.ReportChatPhoto extends TdApi.Function<TdApi.Ok>
Reports a chat photo to the Telegram
moderators. A chat photo can be reported
only 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
int
fileId
Identifier of the photo to report.TdApi.ChatReportReason
reason
The reason for reporting the chat photo.String
text
Additional report details; 0-1024 characters. -
Constructor Summary
Constructors Constructor Description ReportChatPhoto()
Reports 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)
-
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. -
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:
- Constant Field Values
-
-
Constructor Details
-
ReportChatPhoto
public ReportChatPhoto()Reports a chat photo to the Telegram moderators. A chat photo can be reported only 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
-
ReportChatPhoto
Reports a chat photo to the Telegram moderators. A chat photo can be reported only 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.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
- 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()
-