const bot new Telegrafprocess.env.BOTTOKEN // get the token from environment variable
bot.startctx ctx.reply'Welcome' // display Welcome text when we start bot
bot.hears'hi', ctx ctx.reply'Hey there' // listen and handle when user type hi text
bot.launch // start
**Setup Voiceflow**: Create a new function that takes Telegraf ctx, userID, and a request in as arguments. Inside the function, make an API call to the Voiceflow /interact endpoint.
For more detailed guidance, you can refer to the following resources: