Answer the question
In order to leave comments, you need to log in
How do some bots download and share videos quickly?
There is a telegram bot (@SaveYoutubeBot) that instantly sends large videos from YouTube. It doesn’t look like he first downloads to his server, and then sends it to telegram. Then how does he do it?
Answer the question
In order to leave comments, you need to log in
The fact is that this bot already has its own video bank.
Let's explain this in such a way that it gets into telegram, remains in it, acquiring its id, if this bot has never
uploaded before, and has not sent a video to telegram, it will download and send, while saving the id of the video with a link to the link
Something like this, correct if wrong
https://core.telegram.org/bots/api#sending-files
As you can see from the documentation. Sending a file works fine with direct links.
First, the telegram downloads the file to its servers, and then sends it. (Consider the power of the equipment of these very servers, for which several hundred MB are only a couple of moments)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question