java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.AttachmentMenuBot
- Enclosing class:
- TdApi
Represents a bot added to attachment menu.
-
Field Summary
Modifier and TypeFieldDescriptionAttachment menu icon for the bot in TGS format for the official Android app; may be null.long
User identifier of the bot added to attachment menu.static final int
Default attachment menu icon for the bot in SVG format; may be null.Color to highlight selected icon of the bot if appropriate; may be null.Attachment menu icon for the bot in TGS format for the official iOS app; may be null.Attachment menu icon for the bot in SVG format for the official iOS app; may be null.Attachment menu icon for the bot in TGS format for the official native macOS app; may be null.Name for the bot in attachment menu.Color to highlight selected name of the bot if appropriate; may be null. -
Constructor Summary
ConstructorDescriptionRepresents a bot added to attachment menu.AttachmentMenuBot
(long botUserId, String name, TdApi.AttachmentMenuBotColor nameColor, TdApi.File defaultIcon, TdApi.File iosStaticIcon, TdApi.File iosAnimatedIcon, TdApi.File androidIcon, TdApi.File macosIcon, TdApi.AttachmentMenuBotColor iconColor) Represents a bot added to attachment menu.AttachmentMenuBot
(DataInput input) Represents a bot added to attachment menu. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
botUserId
public long botUserIdUser identifier of the bot added to attachment menu. -
name
Name for the bot in attachment menu. -
nameColor
Color to highlight selected name of the bot if appropriate; may be null. -
defaultIcon
Default attachment menu icon for the bot in SVG format; may be null. -
iosStaticIcon
Attachment menu icon for the bot in SVG format for the official iOS app; may be null. -
iosAnimatedIcon
Attachment menu icon for the bot in TGS format for the official iOS app; may be null. -
androidIcon
Attachment menu icon for the bot in TGS format for the official Android app; may be null. -
macosIcon
Attachment menu icon for the bot in TGS format for the official native macOS app; may be null. -
iconColor
Color to highlight selected icon of the bot if appropriate; may be null. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
AttachmentMenuBot
public AttachmentMenuBot()Represents a bot added to attachment menu. -
AttachmentMenuBot
public AttachmentMenuBot(long botUserId, String name, TdApi.AttachmentMenuBotColor nameColor, TdApi.File defaultIcon, TdApi.File iosStaticIcon, TdApi.File iosAnimatedIcon, TdApi.File androidIcon, TdApi.File macosIcon, TdApi.AttachmentMenuBotColor iconColor) Represents a bot added to attachment menu.- Parameters:
botUserId
- long User identifier of the bot added to attachment menu.name
- String Name for the bot in attachment menu.nameColor
- AttachmentMenuBotColor Color to highlight selected name of the bot if appropriate; may be null.defaultIcon
- File Default attachment menu icon for the bot in SVG format; may be null.iosStaticIcon
- File Attachment menu icon for the bot in SVG format for the official iOS app; may be null.iosAnimatedIcon
- File Attachment menu icon for the bot in TGS format for the official iOS app; may be null.androidIcon
- File Attachment menu icon for the bot in TGS format for the official Android app; may be null.macosIcon
- File Attachment menu icon for the bot in TGS format for the official native macOS app; may be null.iconColor
- AttachmentMenuBotColor Color to highlight selected icon of the bot if appropriate; may be null.
-
AttachmentMenuBot
Represents a bot added to attachment menu.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-