Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

upload from telegram bot

I want to upload a file that exists in a telegram server to another server but telegram does not provide a download url link.

I tried to use some bots like pwrtelegrambot or something like that but none of them works. i tried to write a bot to do this for me but i understand that the bot only can download files up to 20mb and i got this error

{"ok":false,"error_code":400,"description":"Bad Request: file is too big"}

Is there any way to generate download url from the files that exists in telegram server and upload them to another server like uploadboy or something else??

I will appreciate for any help!!

like image 485
Mahdi karami Avatar asked Sep 05 '25 17:09

Mahdi karami


1 Answers

as it mentioned in this link, you can't download files bigger than 20MB.

if you really want to download big files, you should forget about the bots and try to modify telegram clients source codes.(telegram cli , android, webogram)

like image 114
tashakori Avatar answered Sep 10 '25 10:09

tashakori