Skip to content

Tego Bot API Documentation v0.2.0


Tego Bot API Documentation / typeString

Function: typeString() ​

typeString(text): void

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

Type a string of text by simulating individual keystrokes

Parameters ​

text ​

string

Text string to type

Returns ​

void

Example ​

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

// Type text
typeString('Hello, World!');

// Type email address
typeString('user@example.com');

// Type with special characters
typeString('Password123!@#');

Released under the MIT License.