@japofc/baileys - v2.4.7
    Preparing search index...

    Function makeInMemoryStore

    • Parameters

      • Optionalconfig: {}

      Returns {
          bind: (ev: any) => void;
          chats: any;
          contacts: {};
          fetchGroupMetadata: (jid: any, sock: any) => Promise<any>;
          fetchImageUrl: (jid: any, sock: any) => Promise<any>;
          fetchMessageReceipts: (
              __namedParameters: { id: any; remoteJid: any },
          ) => Promise<any>;
          fromJSON: (json: any) => void;
          getChatLabels: (chatId: any) => any;
          getLabels: () => ObjectRepository;
          getMessageLabels: (messageId: any) => any;
          groupMetadata: {};
          labelAssociations: any;
          labels: ObjectRepository;
          loadMessage: (jid: any, id: any) => Promise<any>;
          loadMessages: (jid: any, count: any, cursor: any) => Promise<any>;
          messages: {};
          mostRecentMessage: (jid: any) => Promise<any>;
          presences: {};
          readFromFile: (path: any) => void;
          state: { connection: string };
          toJSON: () => {
              chats: any;
              contacts: {};
              labelAssociations: any;
              labels: ObjectRepository;
              messages: {};
          };
          writeToFile: (path: any) => void;
      }

      • bind: (ev: any) => void
      • chats: any
      • contacts: {}
      • fetchGroupMetadata: (jid: any, sock: any) => Promise<any>
      • fetchImageUrl: (jid: any, sock: any) => Promise<any>
      • fetchMessageReceipts: (__namedParameters: { id: any; remoteJid: any }) => Promise<any>
      • fromJSON: (json: any) => void
      • getChatLabels: (chatId: any) => any

        Get labels for chat

      • getLabels: () => ObjectRepository

        Get all available labels for profile

        Keep in mind that the list is formed from predefined tags and tags that were "caught" during their editing.

      • getMessageLabels: (messageId: any) => any

        Get labels for message

      • groupMetadata: {}
      • labelAssociations: any
      • labels: ObjectRepository
      • loadMessage: (jid: any, id: any) => Promise<any>
      • loadMessages: (jid: any, count: any, cursor: any) => Promise<any>

        loads messages from the store, if not found -- uses the legacy connection

      • messages: {}
      • mostRecentMessage: (jid: any) => Promise<any>
      • presences: {}
      • readFromFile: (path: any) => void
      • state: { connection: string }
      • toJSON: () => {
            chats: any;
            contacts: {};
            labelAssociations: any;
            labels: ObjectRepository;
            messages: {};
        }
      • writeToFile: (path: any) => void