fix(channels/telegram): migrate from telegraf to grammy

Replace Telegraf with Grammy as the Telegram Bot framework.

- Replace @telegraf/types with @grammyjs/types in package-lock.json
- Swap telegraf dependency for grammy ^1.41.1 in package.json
- Update TelegramAdapter.ts: Bot instead of Telegraf, .api.* instead
  of .telegram.* calls, .start() instead of .launch(), adjusted event
  subscription syntax (message:text, message:photo, message:document)

Grammy is a more modern and actively maintained Telegram bot framework
for Node.js, improving reliability and reduce legacy dependencies.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
tanzhenxin 2026-04-01 04:28:02 +00:00
parent f61517c40c
commit 46bd05eaf1
3 changed files with 47 additions and 106 deletions

View file

@ -19,7 +19,7 @@
},
"dependencies": {
"@qwen-code/channel-base": "file:../base",
"telegraf": "^4.16.0",
"grammy": "^1.41.1",
"telegram-markdown-formatter": "^0.1.2"
},
"devDependencies": {