This is a simple telegram echo bot built using golang and Netlify Functions.
-
Clone This Repo
-
Set TELEGRAM_BOT_TOKEN environment variable in netlify
-
set your web hook like this
curl --request POST --url https://api.telegram.org/bot<TELEGRAM_BOT_TOKEN>/setWebhook --header 'content-type: application/json' --data '{"url": "<netlify site url>/.netlify/functions/echo"}'
-
and you're good to go.