-
Create a telegram bot from
botFather
, and get theHTTP_TOKEN
(TELEGRAM_NOTIFY). -
export
TELEGRAM_NOTIFY
in your shell.
export TELEGRAM_NOTIFY=1234456789:xxxxxxxxxxxxxxxxxxxxxxxxxxxx
yarn
yarn test
npx cdk deploy
curl \
"https://api.telegram.org/bot${TELEGRAM_NOTIFY}/setWebhook?url=${Lambda_Function_URL}"
---
{"ok":true,"result":true,"description":"Webhook was set"}
npx cdk destroy