php - How to send big files from URL to Telegram bot? -


i have big size files (in mp4 , zip formats) , want send them chat telegram bot, used code below:

file_get_contents('https://api.telegram.org/bot[[app:token]]/senddocument?chat_id=24523586&document='.$fileaddress); 

but can send files small sizes, less 50mb! know there no file size limitation documents sending file_id. can see this page
how can make file_id files? files uploaded on server , using php.

firstly should send file(s) bot , fileid.

after can use fileid send files , way load on telegram's server not yours. of course can send files own server method cause speed reduction bot.

note when send file bot , fileid, moment file can sent without needing store files on own server.

you don't need make fileid.

all need sending file bot , let bot find out fileid , save somewhere future transfers.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -