Class TdApi.ReportSupergroupSpam

Enclosing class:
TdApi

public static class TdApi.ReportSupergroupSpam extends TdApi.Function<TdApi.Ok>
Reports messages in a supergroup as spam; requires administrator rights in the supergroup.

Returns Ok

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    long[]
    Identifiers of messages to report.
    long
    Supergroup identifier.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which reports messages in a supergroup as spam; requires administrator rights in the supergroup.
    ReportSupergroupSpam(long supergroupId, long[] messageIds)
    Creates a function, which reports messages in a supergroup as spam; requires administrator rights in the supergroup.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • supergroupId

      public long supergroupId
      Supergroup identifier.
    • messageIds

      public long[] messageIds
      Identifiers of messages to report. Use messageProperties.canReportSupergroupSpam to check whether the message can be reported.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • ReportSupergroupSpam

      public ReportSupergroupSpam()
      Default constructor for a function, which reports messages in a supergroup as spam; requires administrator rights in the supergroup.

      Returns Ok

    • ReportSupergroupSpam

      public ReportSupergroupSpam(long supergroupId, long[] messageIds)
      Creates a function, which reports messages in a supergroup as spam; requires administrator rights in the supergroup.

      Returns Ok

      Parameters:
      supergroupId - Supergroup identifier.
      messageIds - Identifiers of messages to report. Use messageProperties.canReportSupergroupSpam to check whether the message can be reported.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR