Skip to content

export Class

CommandsBuilder ​

extends ​

Builder

Constructor ​

ts
 new CommandsBuilder( ...commands )
ParameterTypeDescription
...commands[string, string]An array of commands as [command, description].

Methods ​

add( command, description ) ​

ParameterTypeDescription
commandstringThe command, must be lower cased.
descriptionstringThe description of the command.

Add a command to the current builder.

Returns: void

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.