Skip to content

Tego Bot API Documentation v0.1.1


Tego Bot API Documentation / getClipboard

Function: getClipboard()

getClipboard(): string

Defined in: index.ts:558

Get text content from the system clipboard

Returns

string

Current clipboard text content

Example

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

const text = getClipboard();
console.log(`Clipboard contains: ${text}`);

Released under the MIT License.