Package org.drinkless.tdlib
Class TdApi.SetMenuButton
- Enclosing class:
- TdApi
Sets menu button for the given user or for all users; for bots only.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.New menu button.longIdentifier of the user or 0 to set menu button for all users. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which sets menu button for the given user or for all users; for bots only.SetMenuButton(long userId, TdApi.BotMenuButton menuButton) Creates a function, which sets menu button for the given user or for all users; for bots only. -
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
-
userId
public long userIdIdentifier of the user or 0 to set menu button for all users. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SetMenuButton
public SetMenuButton()Default constructor for a function, which sets menu button for the given user or for all users; for bots only.Returns
Ok -
SetMenuButton
Creates a function, which sets menu button for the given user or for all users; for bots only.Returns
Ok- Parameters:
userId- Identifier of the user or 0 to set menu button for all users.menuButton- New menu button.
-
-
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
-