A simple telegram bot, to deploy on Cloudflare Workers.
Prerequisites: have wrangler
installed, and logged in.
- Fill your API token in
src/config.ts
- Change the source, if you want to.
wrangler publish
.- Register your worker with telegram.
To tell telegram where your bot is, please set a webhook for your bot.
curl -sv https://api.telegram.org/bot<yourBotToken>/setWebhook\?url\=https://<workerName>.<yourSubDomain>.workers.dev/<WEBHOOK_PREFIX>
WEBHOOK_PREFIX
can be set at src/config.ts
.
- Unpin messages in a group if they were forwarded from the corresponding channel.
- Delete bot commands after a certain period (default: 8000 ms).
Please open an issue. Thanks in advance!