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
    boolean
    Pass true to apply the change to the existing invite links, including primary links.
    static final int
    Identifier uniquely determining type of the object.
    long
    Identifier of the bot which will be the guard bot in the group; pass 0 if none; ignored if joinByRequest == false.
    boolean
    New value of joinByRequest.
    long
    Identifier of the supergroup that isn't a broadcast group and isn't a channel direct message 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, long guardBotUserId, boolean applyToInviteLinks)
    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 and isn't a channel direct message group.
    • joinByRequest

      public boolean joinByRequest
      New value of joinByRequest.
    • guardBotUserId

      public long guardBotUserId
      Identifier of the bot which will be the guard bot in the group; pass 0 if none; ignored if joinByRequest == false. The bot must have administrator privileges and canInviteUsers right in the supergroup chat, and must have userTypeBot.isGuard == true.
    • 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, long guardBotUserId, boolean applyToInviteLinks)
      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 and isn't a channel direct message group.
      joinByRequest - New value of joinByRequest.
      guardBotUserId - Identifier of the bot which will be the guard bot in the group; pass 0 if none; ignored if joinByRequest == false. The bot must have administrator privileges and canInviteUsers right in the supergroup chat, and must have userTypeBot.isGuard == true.
      applyToInviteLinks - Pass true to apply the change to the existing invite links, including primary links.
  • 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