After installing the snapsave-media-downloader dependency, the system operates in two main stages.
A request is made to snapsave-media-downloader inside the server.js file.
Once the downloader URL is successfully retrieved, the process continues to the second stage.
At this stage, a request is sent to a personal API endpoint:
https://shtl.pw/getmylink/get.php?send=${send}&source=${source}
{ "status": "success", "url": "$short_link" }
{ "status": "error", "error": { "message": "Failed to send video to Telegram: Unknown error" } }
🧠 Parameter Explanation
Parameter Description
$send The media URL extracted from SnapDL. $source The original source URL before the extraction process begins.
⚙️ Background Process
When the above request is made, several operations occur automatically in the background:
-
The media URL is uploaded to the Telegram server using a special bot (regular bot).
-
Once the server returns a status (OK 200), the system simultaneously runs a shortlink generator.
As a result, you’ll receive a shortened URL that looks like this:
Example:
📦 What Do You Get?
The generated shortlink page provides:
✅ Permanent file access — downloadable anytime.
🔗 Shareable short URL — easy to copy and distribute.
💾 Persistent availability — files remain accessible as long as the website stays active.
📍 Important Note
⚠️ On the regular Telegram Bot, the maximum upload file size is 20 MB. You can still download the video, but the shortlink generation process will fail if the file exceeds this limit.