> ## 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.

# MediaSource

> Type alias exported by @botmesh/core.

```ts theme={null}
type MediaSource = 
  | string
  | Buffer
  | {
  url: string;
}
  | {
  buffer: Buffer;
}
  | {
  path: string;
}
  | {
  stream: NodeJS.ReadableStream;
}
  | {
  native: unknown;
};
```

Defined in: [core/provider.ts:197](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/provider.ts#L197)

Outbound media source. Extensible per provider via the `native` escape hatch
(e.g. Telegram's reuse-by-`file_id`) rather than a fixed closed union.


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