createBotActions method

List<CometChatMessageComposerAction> createBotActions()

Implementation

List<CometChatMessageComposerAction> createBotActions() {
  List<CometChatMessageComposerAction> actionList = [];

  for (var aiBot in aiBots) {
    actionList.add(CometChatMessageComposerAction(
        id: aiBot.uid,
        title: aiBot.name,
        onItemClick: (BuildContext context, User? user, Group? group) {
          showAssistBot(context, aiBot, user, group);
        }));
  }

  return actionList;
}