async
params => {
}
const config = {
method: params.method,
url: params.url,
params: params.query,
headers: params.headers,
responseType: params.responseType,
data: params.data,
}
if (params.auth) config.auth = params.auth
return await require("@pipedreamhq/platform").axios(this, config)
Unique identifier for the target chat or username of the target channel (in the format @channelusername). Integer or String accepted.
Text of the message to be sent, 1-4096 characters after entities parsing
async
(params, auths) => {
}
// https://core.telegram.org/bots/api#sendmessage
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,
}
})