Package org.drinkless.tdlib
Class TdApi.ToggleSupergroupIsForum
- Enclosing class:
- TdApi
Toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Discussion supergroups can't be converted to forums.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.booleanNew value of hasForumTabs; ignored if isForum is false.booleanNew value of isForum.longIdentifier of the supergroup. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which toggles whether the supergroup is a forum; requires owner privileges in the supergroup.ToggleSupergroupIsForum(long supergroupId, boolean isForum, boolean hasForumTabs) Creates a function, which toggles whether the supergroup is a forum; requires owner privileges in the supergroup. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
supergroupId
public long supergroupIdIdentifier of the supergroup. -
isForum
public boolean isForumNew value of isForum. -
hasForumTabs
public boolean hasForumTabsNew value of hasForumTabs; ignored if isForum is false. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ToggleSupergroupIsForum
public ToggleSupergroupIsForum()Default constructor for a function, which toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Discussion supergroups can't be converted to forums.Returns
Ok -
ToggleSupergroupIsForum
public ToggleSupergroupIsForum(long supergroupId, boolean isForum, boolean hasForumTabs) Creates a function, which toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Discussion supergroups can't be converted to forums.Returns
Ok- Parameters:
supergroupId- Identifier of the supergroup.isForum- New value of isForum.hasForumTabs- New value of hasForumTabs; ignored if isForum is false.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-