From the creators of rcdtool...
Script that downloads telegram stories.
For help:
./tsdtool --helpThis 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/directoryThen the script starts the downloading.
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/directoryThese stories are saved as "posts":
tsdtool --pinned-stories -C "<username or channel ID>" -O /tmp/path/to/directoryYou can pass the channel and the story ids separated by comma:
tsdtool -C "<username or channel ID>" --story-ids 23or...
tsdtool -C "<username or channel ID>" --story-ids 23,24,40In 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.
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.