Skip to content

Tego Bot API Documentation v0.2.0


Tego Bot API Documentation / typeStringDelayed

Function: typeStringDelayed()

typeStringDelayed(text, cpm): void

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

Type a string with a specified delay between characters (simulates human typing speed)

Parameters

text

string

Text string to type

cpm

number

Characters per minute (typing speed)

Returns

void

Example

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

// Slow typing (300 characters per minute)
typeStringDelayed('Hello', 300);

// Fast typing (1000 characters per minute)
typeStringDelayed('Fast typing!', 1000);

Released under the MIT License.