Skip to content

Tego Bot API Documentation v0.2.0


Tego Bot API Documentation / setClipboard

Function: setClipboard()

setClipboard(text): void

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

Set text content to the system clipboard

Parameters

text

string

Text to copy to clipboard

Returns

void

Example

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

setClipboard('Hello from @tego/bot!');
setClipboard('user@example.com');

Released under the MIT License.