Module tdlight.api

Class TdApi.ReportChat

Enclosing class:
TdApi

public static final class TdApi.ReportChat extends TdApi.Function<TdApi.Ok>
Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.canBeReported. Returns Ok
  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • messageIds

      public long[] messageIds
      Identifiers of reported messages; may be empty to report the whole chat.
    • reason

      public TdApi.ChatReportReason reason
      The reason for reporting the chat.
    • text

      public String 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 chat.canBeReported. Returns Ok
    • ReportChat

      public ReportChat(long chatId, long[] messageIds, TdApi.ChatReportReason reason, String text)
      Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.canBeReported. Returns Ok
      Parameters:
      chatId - long Chat identifier.
      messageIds - long[] Identifiers of reported messages; may be empty to report the whole chat.
      reason - ChatReportReason The reason for reporting the chat.
      text - String Additional report details; 0-1024 characters.
    • ReportChat

      public ReportChat(DataInput input) throws IOException
      Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.canBeReported. Returns Ok
      Throws:
      IOException
  • Method Details