Script that downloads telegram stories.
Project description
tsdtool
From the creators of rcdtool...
Script that downloads telegram stories.
Usage
For help:
./tsdtool --help
This script needs the story link to download it.
tsdtool -c /path/to/config.ini --link "https://t.me/<username>/s/<id>" -O /tmp/path/to/directory
Then the script starts the downloading.
Download all the current stories
You can pass the channel and download all the public stories:
tsdtool -c /path/to/config.ini -C "<username or channel ID>" -O /tmp/path/to/directory
Download the pinned stories
These stories are saved as "posts":
tsdtool --pinned-stories -C "<username or channel ID>" -O /tmp/path/to/directory
Download an specific story
You can pass the channel and the story ids separated by comma:
tsdtool -C "<username or channel ID>" --story-ids 23
or...
tsdtool -C "<username or channel ID>" --story-ids 23,24,40
Dist
In this repository we release the source code (Python) and a binary option for GNU/Linux. You can build a binary for any other operating system using tool as PyInstaller.
Telegram session
You MUST have an API ID provided by Telegram at https://my.telegram.org/ (I think). This is as follows:
api_id: 32767
api_hash: ed855a59bbe4a3360dbf7a0538842142
Then rename config.ini.sample to config.ini, edit it and save wherever you want. If the file is in the same directory as tsdtool and its name is exactly "config.ini", then tsdtool will load it automatically.
The first time, tsdtool will ask you for your phone number, and will start a login process. When this is done, a .session file will be created. With this .session file, the tool could access to your Telegram account to read messages and download medias. The name of the .session file is set in config.ini.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tsdtool-1.0.0.tar.gz.
File metadata
- Download URL: tsdtool-1.0.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e977670e01713b7cd7e4790d09946a29f01be607ad23c428c30b3ceb1dd8ba4e
|
|
| MD5 |
dde540bf6a1b61f8834fa6be36f94984
|
|
| BLAKE2b-256 |
e9bcc5ea26c9a8d8af3352a756427aff12f794afeaad2fb5c1db6cd5f600a0d6
|
File details
Details for the file tsdtool-1.0.0-py3-none-any.whl.
File metadata
- Download URL: tsdtool-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1921a201c80b56d9c54e4f995e426f7b15e8d8e6eb3a5e61e4fb40e40363c06f
|
|
| MD5 |
9e4ec05a8fd1b85d7ecadbd05480f902
|
|
| BLAKE2b-256 |
affbc5e742e30c2ff460f4aa1eb48c5e3cf8ae1964e58c68b7fee2245d21f695
|