Notify me about my new post
@amorev
code:
data:privatelast updated:3 years ago
today
Build integrations remarkably fast!
You're viewing a public workflow template.
Sign up to customize, add steps, modify code and more.
Join 800,000+ developers using the Pipedream platform
steps.
trigger
active
last updated:-last event:-
steps.
nodejs
params
Telegram BOT token
 
string ·params.telegramToken
Chat ID
 
string ·params.chatID
Message
 
string ·params.message
code
async params => {
1
2
3
4
5
6
7
8
9
}
10
process.env.NTBA_FIX_319 = 1;
const TelegramBot = require("node-telegram-bot-api");
const token = params.telegramToken
 
const bot = new TelegramBot(token, {polling: false});
 
await bot.sendMessage(params.chatID, params.message);