Home / Docs / Context
On this page

Context (ctx)

Cada handler recibe un objeto ctx enriquecido con informacion y metodos.

Propiedades

Metodos

ctx.reply(text, options)

Responde al mensaje actual.

JavaScript
await ctx.reply('Hola!');

ctx.send(text, options)

Envia un mensaje al chat actual.

ctx.sendFile(file, options)

Envia un archivo.

ctx.getReplyMessage()

Obtiene el mensaje al que se responde.

ctx.downloadMedia(message, options)

Descarga medios con progreso.