public static class TdApi.SetMenuButton extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.BotMenuButton |
menuButton
New menu button.
|
long |
userId
Identifier of the user or 0 to set menu button for all users.
|
| Constructor and Description |
|---|
SetMenuButton()
Default 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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long userId
public TdApi.BotMenuButton menuButton
public static final int CONSTRUCTOR
public SetMenuButton()
Returns Ok
public SetMenuButton(long userId,
TdApi.BotMenuButton menuButton)
Returns Ok
userId - Identifier of the user or 0 to set menu button for all users.menuButton - New menu button.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object