java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.AttachmentMenuBot
- Enclosing class:
- TdApi
Represents a bot, which can be added to attachment or side menu.
-
Field Summary
Modifier and TypeFieldDescriptionIcon for the bot in TGS format for the official Android app; may be null.Icon for the bot in SVG format for the official Android app side menu; may be null.long
User identifier of the bot.static final int
Identifier uniquely determining type of the object.Default icon for the bot in SVG format; may be null.Color to highlight selected icon of the bot if appropriate; may be null.Icon for the bot in TGS format for the official iOS app; may be null.Icon for the bot in PNG format for the official iOS app side menu; may be null.Icon for the bot in SVG format for the official iOS app; may be null.boolean
True, if the bot was explicitly added by the user.Icon for the bot in TGS format for the official native macOS app; may be null.Icon for the bot in PNG format for the official macOS app side menu; may be null.Name for the bot in attachment menu.Color to highlight selected name of the bot if appropriate; may be null.boolean
True, if the user must be asked for the permission to send messages to the bot.boolean
True, if a disclaimer, why the bot is shown in the side menu, is needed.boolean
True, if the bot must be shown in the attachment menu.boolean
True, if the bot must be shown in the side menu.boolean
True, if the bot supports opening from attachment menu in private chats with other bots.boolean
True, if the bot supports opening from attachment menu in channel chats.boolean
True, if the bot supports opening from attachment menu in basic group and supergroup chats.boolean
True, if the bot supports opening from attachment menu in the chat with the bot.boolean
True, if the bot supports "settings_button_pressed" event.boolean
True, if the bot supports opening from attachment menu in private chats with ordinary users.Default placeholder for opened Web Apps in SVG format; may be null. -
Constructor Summary
ConstructorDescriptionRepresents a bot, which can be added to attachment or side menu.AttachmentMenuBot
(long botUserId, boolean supportsSelfChat, boolean supportsUserChats, boolean supportsBotChats, boolean supportsGroupChats, boolean supportsChannelChats, boolean supportsSettings, boolean requestWriteAccess, boolean isAdded, boolean showInAttachmentMenu, boolean showInSideMenu, boolean showDisclaimerInSideMenu, String name, TdApi.AttachmentMenuBotColor nameColor, TdApi.File defaultIcon, TdApi.File iosStaticIcon, TdApi.File iosAnimatedIcon, TdApi.File iosSideMenuIcon, TdApi.File androidIcon, TdApi.File androidSideMenuIcon, TdApi.File macosIcon, TdApi.File macosSideMenuIcon, TdApi.AttachmentMenuBotColor iconColor, TdApi.File webAppPlaceholder) Represents a bot, which can be added to attachment or side menu.AttachmentMenuBot
(DataInput input) Represents a bot, which can be added to attachment or side menu. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
botUserId
public long botUserIdUser identifier of the bot. -
supportsSelfChat
public boolean supportsSelfChatTrue, if the bot supports opening from attachment menu in the chat with the bot. -
supportsUserChats
public boolean supportsUserChatsTrue, if the bot supports opening from attachment menu in private chats with ordinary users. -
supportsBotChats
public boolean supportsBotChatsTrue, if the bot supports opening from attachment menu in private chats with other bots. -
supportsGroupChats
public boolean supportsGroupChatsTrue, if the bot supports opening from attachment menu in basic group and supergroup chats. -
supportsChannelChats
public boolean supportsChannelChatsTrue, if the bot supports opening from attachment menu in channel chats. -
supportsSettings
public boolean supportsSettingsTrue, if the bot supports "settings_button_pressed" event. -
requestWriteAccess
public boolean requestWriteAccessTrue, if the user must be asked for the permission to send messages to the bot. -
isAdded
public boolean isAddedTrue, if the bot was explicitly added by the user. If the bot isn't added, then on the first bot launch toggleBotIsAddedToAttachmentMenu must be called and the bot must be added or removed. -
showInAttachmentMenu
public boolean showInAttachmentMenuTrue, if the bot must be shown in the attachment menu. -
showInSideMenu
public boolean showInSideMenuTrue, if the bot must be shown in the side menu. -
showDisclaimerInSideMenu
public boolean showDisclaimerInSideMenuTrue, if a disclaimer, why the bot is shown in the side menu, is needed. -
name
Name for the bot in attachment menu. -
nameColor
Color to highlight selected name of the bot if appropriate; may be null. -
defaultIcon
Default icon for the bot in SVG format; may be null. -
iosStaticIcon
Icon for the bot in SVG format for the official iOS app; may be null. -
iosAnimatedIcon
Icon for the bot in TGS format for the official iOS app; may be null. -
iosSideMenuIcon
Icon for the bot in PNG format for the official iOS app side menu; may be null. -
androidIcon
Icon for the bot in TGS format for the official Android app; may be null. -
androidSideMenuIcon
Icon for the bot in SVG format for the official Android app side menu; may be null. -
macosIcon
Icon for the bot in TGS format for the official native macOS app; may be null. -
macosSideMenuIcon
Icon for the bot in PNG format for the official macOS app side menu; may be null. -
iconColor
Color to highlight selected icon of the bot if appropriate; may be null. -
webAppPlaceholder
Default placeholder for opened Web Apps in SVG format; may be null. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
AttachmentMenuBot
public AttachmentMenuBot()Represents a bot, which can be added to attachment or side menu. -
AttachmentMenuBot
public AttachmentMenuBot(long botUserId, boolean supportsSelfChat, boolean supportsUserChats, boolean supportsBotChats, boolean supportsGroupChats, boolean supportsChannelChats, boolean supportsSettings, boolean requestWriteAccess, boolean isAdded, boolean showInAttachmentMenu, boolean showInSideMenu, boolean showDisclaimerInSideMenu, String name, TdApi.AttachmentMenuBotColor nameColor, TdApi.File defaultIcon, TdApi.File iosStaticIcon, TdApi.File iosAnimatedIcon, TdApi.File iosSideMenuIcon, TdApi.File androidIcon, TdApi.File androidSideMenuIcon, TdApi.File macosIcon, TdApi.File macosSideMenuIcon, TdApi.AttachmentMenuBotColor iconColor, TdApi.File webAppPlaceholder) Represents a bot, which can be added to attachment or side menu.- Parameters:
botUserId
- User identifier of the bot.supportsSelfChat
- True, if the bot supports opening from attachment menu in the chat with the bot.supportsUserChats
- True, if the bot supports opening from attachment menu in private chats with ordinary users.supportsBotChats
- True, if the bot supports opening from attachment menu in private chats with other bots.supportsGroupChats
- True, if the bot supports opening from attachment menu in basic group and supergroup chats.supportsChannelChats
- True, if the bot supports opening from attachment menu in channel chats.supportsSettings
- True, if the bot supports "settings_button_pressed" event.requestWriteAccess
- True, if the user must be asked for the permission to send messages to the bot.isAdded
- True, if the bot was explicitly added by the user. If the bot isn't added, then on the first bot launch toggleBotIsAddedToAttachmentMenu must be called and the bot must be added or removed.showInAttachmentMenu
- True, if the bot must be shown in the attachment menu.showInSideMenu
- True, if the bot must be shown in the side menu.showDisclaimerInSideMenu
- True, if a disclaimer, why the bot is shown in the side menu, is needed.name
- Name for the bot in attachment menu.nameColor
- Color to highlight selected name of the bot if appropriate; may be null.defaultIcon
- Default icon for the bot in SVG format; may be null.iosStaticIcon
- Icon for the bot in SVG format for the official iOS app; may be null.iosAnimatedIcon
- Icon for the bot in TGS format for the official iOS app; may be null.iosSideMenuIcon
- Icon for the bot in PNG format for the official iOS app side menu; may be null.androidIcon
- Icon for the bot in TGS format for the official Android app; may be null.androidSideMenuIcon
- Icon for the bot in SVG format for the official Android app side menu; may be null.macosIcon
- Icon for the bot in TGS format for the official native macOS app; may be null.macosSideMenuIcon
- Icon for the bot in PNG format for the official macOS app side menu; may be null.iconColor
- Color to highlight selected icon of the bot if appropriate; may be null.webAppPlaceholder
- Default placeholder for opened Web Apps in SVG format; may be null.
-
AttachmentMenuBot
Represents a bot, which can be added to attachment or side menu.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-