AttachmentMenuBot constructor

const AttachmentMenuBot({
  1. required int botUserId,
  2. required bool supportsSelfChat,
  3. required bool supportsUserChats,
  4. required bool supportsBotChats,
  5. required bool supportsGroupChats,
  6. required bool supportsChannelChats,
  7. required bool supportsSettings,
  8. required bool requestWriteAccess,
  9. required bool isAdded,
  10. required bool showInAttachmentMenu,
  11. required bool showInSideMenu,
  12. required bool showDisclaimerInSideMenu,
  13. required String name,
  14. AttachmentMenuBotColor? nameColor,
  15. File? defaultIcon,
  16. File? iosStaticIcon,
  17. File? iosAnimatedIcon,
  18. File? iosSideMenuIcon,
  19. File? androidIcon,
  20. File? androidSideMenuIcon,
  21. File? macosIcon,
  22. File? macosSideMenuIcon,
  23. AttachmentMenuBotColor? iconColor,
  24. File? webAppPlaceholder,
  25. dynamic extra,
  26. 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,
});