Fork of Node.js telegram bot project was forked from Fork of Node.js telegram bot project
Continue chatting to ask questions about or make changes to it.
This generation may require the following integrations:
Log in
You must be logged in to connect an integration.
iam not geting actual size in message and in db also it shows null
pls show the actual file size and the fileformat too in the response message
please dont show like this "Large file (>20MB)"
Innisai Paadivarum (Male Vocals) 👤 P. Unnikrishnan 🎬 Thullatha Manamum Thullum 📦 Large file (>20MB)
Innisai Padivarum (Female Vocals) 👤 K.S. Chithra 🎬 Thullatha Manamum Thullum 📦 Large file (>20MB)
Innisai Padivarum (Female Vocals) 👤 K.S. Chithra 🎬 Thullatha Manamum Thullum 📦 Large file (>20MB)
Innisai Padivarum (Female Vocals) 👤 K.S. Chithra 🎬 Thullatha Manamum Thullum 📦 Large file (>20MB)
Innisai Padivarum (Female Vocals) 👤 K.S. Chithra 🎬 Thullatha Manamum Thullum 📦 Large file (>20MB)
[{ "resource": "/c:/Users/anils/Downloads/tg-bot/src/bot/commands/debug.ts", "owner": "typescript", "code": "2339", "severity": 8, "message": "Property 'getMessage' does not exist on type 'Telegram'.", "source": "ts", "startLineNumber": 71, "startColumn": 42, "endLineNumber": 71, "endColumn": 52 },{ "resource": "/c:/Users/anils/Downloads/tg-bot/src/bot/handlers/admin.ts", "owner": "typescript", "code": "2339", "severity": 8, "message": "Property 'getMessage' does not exist on type 'Telegram'.", "source": "ts", "startLineNumber": 177, "startColumn": 50, "endLineNumber": 177, "endColumn": 60 },{ "resource": "/c:/Users/anils/Downloads/tg-bot/src/bot/index.ts", "owner": "typescript", "code": "2339", "severity": 8, "message": "Property 'getMessage' does not exist on type 'Telegram'.", "source": "ts", "startLineNumber": 319, "startColumn": 46, "endLineNumber": 319, "endColumn": 56 }]
I'll fix the file size display issue and the TypeScript errors related to the getMessage
method. Let's update the necessary files:
I've made several improvements to fix the file size display issues and TypeScript errors:
Fixed TypeScript errors with getMessage
:
getMessage
method in all relevant filesImproved file size display:
Enhanced file size retrieval:
Added multiple fallback methods to get file sizes:
Added file format detection:
Improved debugging commands:
These changes should provide more accurate and detailed information about the files in your bot's responses.
This generation may require the following integrations:
Log in
You must be logged in to connect an integration.
Please make sure to add the following environment variables to your project:
remove file size completely , db , other files etc
and tell me what files i need to delete , i will remove that files also
also if i upload same file again in the private group it should not index in the db and the bot should delete the duplicate upload or ask us to rename the file or reeplace the file using the bot itself pls add that feature too
and do a clean in all my code and remove unused code ,use proper typescript