Class TdApi.ToggleSupergroupJoinByRequest

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Ok>
org.drinkless.tdlib.TdApi.ToggleSupergroupJoinByRequest
Enclosing class:
TdApi

public static class TdApi.ToggleSupergroupJoinByRequest extends TdApi.Function<TdApi.Ok>
Toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires canRestrictMembers administrator right.

Returns Ok

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    boolean
    New value of joinByRequest.
    long
    Identifier of the supergroup that isn't a broadcast group.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires canRestrictMembers administrator right.
    ToggleSupergroupJoinByRequest(long supergroupId, boolean joinByRequest)
    Creates a function, which toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires canRestrictMembers administrator right.
  • 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
      Identifier of the supergroup that isn't a broadcast group.
    • joinByRequest

      public boolean joinByRequest
      New value of joinByRequest.
    • CONSTRUCTOR

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

    • ToggleSupergroupJoinByRequest

      public ToggleSupergroupJoinByRequest()
      Default constructor for a function, which toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires canRestrictMembers administrator right.

      Returns Ok

    • ToggleSupergroupJoinByRequest

      public ToggleSupergroupJoinByRequest(long supergroupId, boolean joinByRequest)
      Creates a function, which toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires canRestrictMembers administrator right.

      Returns Ok

      Parameters:
      supergroupId - Identifier of the supergroup that isn't a broadcast group.
      joinByRequest - New value of joinByRequest.
  • 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