Class TdApi.ReportSupergroupSpam

Enclosing class:
TdApi

public static class TdApi.ReportSupergroupSpam
extends TdApi.Function
Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup.

Returns Ok

  • Field Details

    • supergroupId

      public long supergroupId
      Supergroup identifier.
    • userId

      public long userId
      User identifier.
    • messageIds

      public long[] messageIds
      Identifiers of messages sent in the supergroup by the user. This list must be non-empty.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • ReportSupergroupSpam

      public ReportSupergroupSpam()
      Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup.

      Returns Ok

    • ReportSupergroupSpam

      public ReportSupergroupSpam​(long supergroupId, long userId, long[] messageIds)
      Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup.

      Returns Ok

      Parameters:
      supergroupId - long Supergroup identifier.
      userId - long User identifier.
      messageIds - long[] Identifiers of messages sent in the supergroup by the user. This list must be non-empty.
    • ReportSupergroupSpam

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