For Anyone Seeking an Answer !
1. download TDL (https://github.com/iyear/tdl/releases/latest) binary for your operating system
2. unzip the archive with 7z or whatever figure it out
3. if you're on linux you probably know how to run a binary from the cli windows niggas just go to the extracted folder and enter 'cmd' on the address bar of the windows explorer (this pc/my computer)
4. run the following command to log into your telegram account
enter the details it asks and log in
5. list all the telegram chats to get the required chat id,
6. note down the chat id of the channel/group you wanna download everything or photos/videos
7. export the files you wanna download to a json
if you wanna download all you the below command
Code:
tdl chat export -c "chatID"
if you wanna only download photos
Bash:
tdl chat export -c "chatID" -f "Media.Name endsWith '.jpg' && Media.Name endsWith '.jpeg' && Media.Name endsWith '.png' && Media.Name endsWith '.webp'"
if you wanna only download videos
Bash:
tdl chat export -c "chatID" -f "Media.Name endsWith '.mp4' && Media.Name endsWith '.mkv' && Media.Name endsWith '.png' && Media.Name endsWith '.mov'"
adjust the file formats you want. I just added some general ones
8. finally a tdl-export.json file will be created in the current directory
9. now to download all the stuff, just run the following command
Bash:
tdl dl -f tdl-export.json -d "tgdownloads"
done !