telegram-echo
Replies to every message your Telegram bot gets (docs/spec.md §3.13).
- In Telegram, message @BotFather, send
/newbot, and copy the token. bun pipo ui, open 🤖 Bots, add a bot namedmainwith that token.bun pipo start examples/telegram-echo/telegram-echo.pipo, then message the bot. The first message is ignored: the log (bun pipo logs telegram-echo) names your chat id.- Add that id to the bot's Allow list, restart the pipeline, and message it again.
telegram-echo.pipo#
pipo: 1
name: telegram-echo
description: Answers every message the default Telegram bot gets, and logs who wrote what.
# Add a bot first: dashboard > Bots (pipo ui), with your own chat id in its allow list.
# Message the bot once without it: the log names your id.
input:
via: telegram
nodes:
seen:
from: input
tap: log
with:
message: "${data.from.name} wrote: ${data.text}"
output:
from: seen
to: telegram
with:
text: "You said: ${data.text}"
Source: examples/telegram-echo.