SyntaxError: Invalid or unexpected token, Please I Need Help

SyntaxError: Invalid or unexpected token
at _pd_deep_evaluate (/var/task/params_evaluator.js:57:36)
at MessagePort. (/var/task/params_evaluator.js:11:9)
at MessagePort.[nodejs.internal.kHybridDispatch] (internal/event_target.js:399:24)
at MessagePort.exports.emitMessage (internal/per_context/messageport.js:18:26)

code
async (params, auths) => {
// Telegram Bot API
const { chat_id, text } = params
return await require("@pipedreamhq/platform").axios(this, {
method: “POST”,
url: https://api.telegram.org/bot${auths.telegram_bot_api.token}/sendMessage,
params: {
chat_id,
text,
}
})
}

Hi @runttechworld

First off, welcome to the Pipedream community. Happy to have you!

Could you provide the step code that results in that error you shared?

async (params, auths) => {
// Telegram Bot API
const { chat_id, text } = params
return await require("@pipedreamhq/platform").axios(this, {
method: “POST”,
url: https://api.telegram.org/bot${auths.telegram_bot_api.token}/sendMessage ,
params: {
chat_id,
text,
}
})
}

thanks @runttechworld looks like you’re using an unmodified prebuilt Telegram action.

And just to confirm, you have already authenticated your account correct?

If so, could you also share the workflow with support? The option is under the workflow Settings tab.

Thanks,
Pierce