Skip to content

Tego Bot API Documentation v0.1.1


Tego Bot API Documentation / getScreenSize

Function: getScreenSize()

getScreenSize(): ScreenSize

Defined in: index.ts:519

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.