Package org.drinkless.tdlib
Class TdApi.ToggleGeneralForumTopicIsHidden
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Ok>
org.drinkless.tdlib.TdApi.ToggleGeneralForumTopicIsHidden
- Enclosing class:
- TdApi
Toggles whether a General topic is hidden in a forum supergroup chat; requires canManageTopics administrator right in the supergroup.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongIdentifier of the chat.static final intIdentifier uniquely determining type of the object.booleanPass true to hide and close the General topic; pass false to unhide it. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which toggles whether a General topic is hidden in a forum supergroup chat; requires canManageTopics administrator right in the supergroup.ToggleGeneralForumTopicIsHidden(long chatId, boolean isHidden) Creates a function, which toggles whether a General topic is hidden in a forum supergroup chat; requires canManageTopics administrator right 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
-
chatId
public long chatIdIdentifier of the chat. -
isHidden
public boolean isHiddenPass true to hide and close the General topic; pass false to unhide it. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ToggleGeneralForumTopicIsHidden
public ToggleGeneralForumTopicIsHidden()Default constructor for a function, which toggles whether a General topic is hidden in a forum supergroup chat; requires canManageTopics administrator right in the supergroup.Returns
Ok -
ToggleGeneralForumTopicIsHidden
public ToggleGeneralForumTopicIsHidden(long chatId, boolean isHidden) Creates a function, which toggles whether a General topic is hidden in a forum supergroup chat; requires canManageTopics administrator right in the supergroup.Returns
Ok- Parameters:
chatId- Identifier of the chat.isHidden- Pass true to hide and close the General topic; pass false to unhide it.
-
-
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
-