Skip to content

Tego Bot API Documentation v0.2.0


Tego Bot API Documentation / getClipboard

Function: getClipboard()

getClipboard(): string

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

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.