mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
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:
parent
f61517c40c
commit
46bd05eaf1
3 changed files with 47 additions and 106 deletions
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue