- add
wrangler.toml
config:
[vars]
AUTH_TOKEN = "custom password"
CHAT_ID = "your chat_id"
TELEGRAM_BOT_KEY = "your telegram bot key, like 1234567890:ABCDEFGHIJKLMNOPQRSTUVWXYZ, without 'bot' string"
-
npm i && npm start
run local server, then access http://local:port?token={custom password}&text={you want to send text to telegram bot} -
deploy to CloudFlare Workers:
npm run deploy