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

# getDevice

> Returns the device predicted by message ID

> **getDevice**(`id`): `"web"` | `"unknown"` | `"android"` | `"ios"` | `"desktop"`

Defined in: [src/Utils/messages.ts:868](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/messages.ts#L868)

Returns the device predicted by message ID

## Parameters

### id

`string`

## Returns

`"web"` | `"unknown"` | `"android"` | `"ios"` | `"desktop"`
