Class TdApi.ToggleSupergroupHasAggressiveAntiSpamEnabled

java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.ToggleSupergroupHasAggressiveAntiSpamEnabled
Enclosing class:
TdApi

public static class TdApi.ToggleSupergroupHasAggressiveAntiSpamEnabled extends TdApi.Function<TdApi.Ok>
Toggles whether aggressive anti-spam checks are enabled in the supergroup. Can be called only if supergroupFullInfo.canToggleAggressiveAntiSpam == true.

Returns Ok

  • Field Details

    • supergroupId

      public long supergroupId
      The identifier of the supergroup, which isn't a broadcast group.
    • hasAggressiveAntiSpamEnabled

      public boolean hasAggressiveAntiSpamEnabled
      The new value of hasAggressiveAntiSpamEnabled.
    • CONSTRUCTOR

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

    • ToggleSupergroupHasAggressiveAntiSpamEnabled

      public ToggleSupergroupHasAggressiveAntiSpamEnabled()
      Default constructor for a function, which toggles whether aggressive anti-spam checks are enabled in the supergroup. Can be called only if supergroupFullInfo.canToggleAggressiveAntiSpam == true.

      Returns Ok

    • ToggleSupergroupHasAggressiveAntiSpamEnabled

      public ToggleSupergroupHasAggressiveAntiSpamEnabled(long supergroupId, boolean hasAggressiveAntiSpamEnabled)
      Creates a function, which toggles whether aggressive anti-spam checks are enabled in the supergroup. Can be called only if supergroupFullInfo.canToggleAggressiveAntiSpam == true.

      Returns Ok

      Parameters:
      supergroupId - The identifier of the supergroup, which isn't a broadcast group.
      hasAggressiveAntiSpamEnabled - The new value of hasAggressiveAntiSpamEnabled.
  • 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