> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# TranscriptMessageSource

> Interface exported by @botmesh/core.

Defined in: [testing/transcripts/format.ts:379](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/transcripts/format.ts#L379)

Minimal slice of `IStore` needed by [transcriptFromStore](https://botmesh.afaya.com.co/api/core/functions/transcriptFromStore.md).

## Methods

### getMessagesByChat()

```ts theme={null}
getMessagesByChat(chatId, limit?): Promise<StoredMessage[]>;
```

Defined in: [testing/transcripts/format.ts:380](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/transcripts/format.ts#L380)

#### Parameters

| Parameter | Type |
| - | - |
| `chatId` | `string` |
| `limit?` | `number` |

#### Returns

`Promise`\<[`StoredMessage`](https://botmesh.afaya.com.co/api/core/interfaces/StoredMessage)\[]>

***

### getChat()?

```ts theme={null}
getChat?(chatId): Promise<
  | {
  kind?: string;
}
| undefined>;
```

Defined in: [testing/transcripts/format.ts:382](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/transcripts/format.ts#L382)

Used to detect group chats when `isGroup` is not given.

#### Parameters

| Parameter | Type |
| - | - |
| `chatId` | `string` |

#### Returns

`Promise`\<
\| \{
`kind?`: `string`;
}
\| `undefined`>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.