Class 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 chats 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 Details

    • chatId

      public long chatId
      Chat identifier.
    • reason

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

      public long[] messageIds
      Identifiers of reported messages, if any.
    • 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 chats 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

      public ReportChat​(long chatId, TdApi.ChatReportReason reason, long[] messageIds)
      Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if this is a private chats 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.
      reason - ChatReportReason The reason for reporting the chat.
      messageIds - long[] Identifiers of reported messages, if any.
    • ReportChat

      public ReportChat​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details