public static class TdApi.ToggleSupergroupJoinByRequest extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
joinByRequest
New value of joinByRequest.
|
long |
supergroupId
Identifier of the supergroup that isn't a broadcast group.
|
| Constructor and Description |
|---|
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.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long supergroupId
public boolean joinByRequest
public static final int CONSTRUCTOR
public ToggleSupergroupJoinByRequest()
Returns Ok
public ToggleSupergroupJoinByRequest(long supergroupId,
boolean joinByRequest)
Returns Ok
supergroupId - Identifier of the supergroup that isn't a broadcast group.joinByRequest - New value of joinByRequest.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object