Initial commit: Telegram bot with Cloudflare Workers
- OpenAI GPT-4o-mini with Function Calling - Cloudflare D1 for user profiles and message buffer - Sliding window (3 summaries max) for infinite context - Tools: weather, search, time, calculator - Workers AI fallback support - Webhook security with rate limiting Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
27
package.json
Normal file
27
package.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "telegram-summary-bot",
|
||||
"version": "1.0.0",
|
||||
"description": "Telegram bot with rolling summary using Cloudflare Workers + D1",
|
||||
"main": "src/index.ts",
|
||||
"scripts": {
|
||||
"dev": "wrangler dev",
|
||||
"deploy": "wrangler deploy",
|
||||
"db:create": "wrangler d1 create telegram-summary-db",
|
||||
"db:init": "wrangler d1 execute telegram-summary-db --file=schema.sql",
|
||||
"db:init:local": "wrangler d1 execute telegram-summary-db --local --file=schema.sql",
|
||||
"tail": "wrangler tail"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cloudflare/workers-types": "^4.20241127.0",
|
||||
"typescript": "^5.3.3",
|
||||
"wrangler": "^3.93.0"
|
||||
},
|
||||
"keywords": [
|
||||
"telegram",
|
||||
"bot",
|
||||
"cloudflare",
|
||||
"workers",
|
||||
"d1",
|
||||
"ai"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user