public static class TdApi.ToggleBotIsAddedToAttachmentMenu extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
boolean |
allowWriteAccess
Pass true if the current user allowed the bot to send them messages.
|
long |
botUserId
Bot's user identifier.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isAdded
Pass true to add the bot to attachment menu; pass false to remove the bot from attachment menu.
|
| Constructor and Description |
|---|
ToggleBotIsAddedToAttachmentMenu()
Default constructor for a function, which adds or removes a bot to attachment and side menu.
|
ToggleBotIsAddedToAttachmentMenu(long botUserId,
boolean isAdded,
boolean allowWriteAccess)
Creates a function, which adds or removes a bot to attachment and side menu.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long botUserId
public boolean isAdded
public boolean allowWriteAccess
public static final int CONSTRUCTOR
public ToggleBotIsAddedToAttachmentMenu()
Returns Ok
public ToggleBotIsAddedToAttachmentMenu(long botUserId,
boolean isAdded,
boolean allowWriteAccess)
Returns Ok
botUserId - Bot's user identifier.isAdded - Pass true to add the bot to attachment menu; pass false to remove the bot from attachment menu.allowWriteAccess - Pass true if the current user allowed the bot to send them messages. Ignored if isAdded is false.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object