Parameters
Returns
TypeTrigger
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Function exported by @botmesh/core.
function typeTrigger(...types): TypeTrigger;
| Parameter | Type |
|---|---|
…types | MessageType[] |
TypeTrigger
// any visual media, but not audio/documents
bot.when(typeTrigger('image', 'video'), (ctx) => ctx.reply('¡Qué buena toma!'))