Skip to content

Tego Bot API Documentation v0.2.0


Tego Bot API Documentation / getScreenSize

Function: getScreenSize()

getScreenSize(): ScreenSize

Defined in: botjs/src/index.ts:497

Get the dimensions of the primary screen

Returns

ScreenSize

Object containing width and height in pixels

Example

typescript
import { getScreenSize } from "@tego/botjs";

const size = getScreenSize();
console.log(`Screen resolution: ${size.width}x${size.height}`);

Released under the MIT License.