ToggleBotIsAddedToAttachmentMenu constructor

const ToggleBotIsAddedToAttachmentMenu({
  1. required int botUserId,
  2. required bool isAdded,
  3. required bool allowWriteAccess,
})

Adds or removes a bot to attachment menu. Bot can be added to attachment menu, only if userTypeBot.can_be_added_to_attachment_menu == true

Implementation

const ToggleBotIsAddedToAttachmentMenu({
  required this.botUserId,
  required this.isAdded,
  required this.allowWriteAccess,
});