auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps, params, auths) => {
}
// https://core.telegram.org/bots/api#sendmessage
const { chat_id, question, options } = params
return await require("@pipedreamhq/platform").axios(this, {
method: "POST",
url: `https://api.telegram.org/bot${auths.telegram_bot_api.token}/sendPoll`,
params: {
chat_id,
question,
options
}
})