Skip to content

export Class

MessageEntities ​

extends ​

Builder

Constructor ​

ts
 new MessageEntities( ...entites )
ParameterTypeDescription
...entitesMessageEntitiesType[]The entities to attach to the message.

Methods ​

add( ...entity ) ​

ParameterTypeDescription
...entityMessageEntitiesType[]The entities to add to the message.

Add entities to the current builder.

Returns: MessageEntities

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