Skip to content

Tego Bot API Documentation v0.1.1


Tego Bot API Documentation / setClipboard

Function: setClipboard()

setClipboard(text): void

Defined in: index.ts:575

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.