Class TdApi.ReportSupergroupSpam

  • Enclosing class:
    TdApi

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

    Returns Ok

    • Field Detail

      • supergroupId

        public long supergroupId
        Supergroup identifier.
      • messageIds

        public long[] messageIds
        Identifiers of messages to report.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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.