2.0.0-0
Pre-release
Pre-release
π What's New
- Successfully migrated the Telegram Bot, built with the Grammy Framework in TypeScript, from Cloudflare Workers to Azure Functions.
- Integrated ngrok for local development, enabling port forwarding to a public URL for Telegram webhooks.
Automated the process of fetching and updating the ngrok URL for the Telegram Bot API to streamline local testing.
π οΈ Development Workflow Updates
- Set up a new dev workflow with four scripts:
- Running Azure Functions locally.
- Managing the ngrok tunnel.
- Setting up the webhook URL.
- Testing Telegram Bot interactions locally.
- Leveraged Bun for scripting:
- Runs shell commands seamlessly with TypeScript.
- Minimal setup required; supports ESM and TypeScript natively.
ποΈ Why the Move?
- While Cloudflare Workers offered impressive performance (minimal response time and no cold starts), limitations in Node.js support made it challenging for more complex library dependencies.
- Azure Functions provide more flexibility for Node.js libraries, though with some trade-offs, like cold startup delays.
What's Changed
- feat: migrate to Azure Functions by @mildronize in #3
Full Changelog: 1.1.0...2.0.0-0