AttachmentMenuBot constructor
const
AttachmentMenuBot({
- required int botUserId,
- required bool supportsSelfChat,
- required bool supportsUserChats,
- required bool supportsBotChats,
- required bool supportsGroupChats,
- required bool supportsChannelChats,
- required bool supportsSettings,
- required bool requestWriteAccess,
- required bool isAdded,
- required bool showInAttachmentMenu,
- required bool showInSideMenu,
- required bool showDisclaimerInSideMenu,
- required String name,
- AttachmentMenuBotColor? nameColor,
- File? defaultIcon,
- File? iosStaticIcon,
- File? iosAnimatedIcon,
- File? iosSideMenuIcon,
- File? androidIcon,
- File? androidSideMenuIcon,
- File? macosIcon,
- File? macosSideMenuIcon,
- AttachmentMenuBotColor? iconColor,
- File? webAppPlaceholder,
- dynamic extra,
- int? clientId,
Represents a bot, which can be added to attachment or side menu
Implementation
const AttachmentMenuBot({
required this.botUserId,
required this.supportsSelfChat,
required this.supportsUserChats,
required this.supportsBotChats,
required this.supportsGroupChats,
required this.supportsChannelChats,
required this.supportsSettings,
required this.requestWriteAccess,
required this.isAdded,
required this.showInAttachmentMenu,
required this.showInSideMenu,
required this.showDisclaimerInSideMenu,
required this.name,
this.nameColor,
this.defaultIcon,
this.iosStaticIcon,
this.iosAnimatedIcon,
this.iosSideMenuIcon,
this.androidIcon,
this.androidSideMenuIcon,
this.macosIcon,
this.macosSideMenuIcon,
this.iconColor,
this.webAppPlaceholder,
this.extra,
this.clientId,
});