Telegram උදවුවක් ඕනේ

lkkolla

Well-known member
  • Sep 28, 2023
    1,167
    1,664
    113
    මචන්ලා Telegram channel එකක photos එකපාර බල්ක් dowanlod කරගන්න විදියක් කියනකො
     

    MR.YOLO

    Well-known member
  • Nov 27, 2023
    3,425
    6,179
    113
    1000 wage machn
    Phone එකේ වීතරද telegram තියෙන්නේ PC එකේ නැද්ද?

    Compress කරන බොටෙක් ඉන්නවා ඌට ෆයිල් ටික යවලා archive එකක් හදලා බාගත කරගන්න පුළුවන්, හැබැයි අවුල තියෙන්නේ a.p.i එකෙන් එකපාරට content 100යි select කරන්න දෙන්නේ

    හිටපං alternative method එකක් හොයලා කියන්න බලන්නම්
     

    lkkolla

    Well-known member
  • Sep 28, 2023
    1,167
    1,664
    113
    Phone එකේ වීතරද telegram තියෙන්නේ PC එකේ නැද්ද?

    Compress කරන බොටෙක් ඉන්නවා ඌට ෆයිල් ටික යවලා archive එකක් හදලා බාගත කරගන්න පුළුවන්, හැබැයි අවුල තියෙන්නේ a.p.i එකෙන් එකපාරට content 100යි select කරන්න දෙන්නේ

    හිටපං alternative method එකක් හොයලා කියන්න බලන්නම්
    pc ekn baluwe machn phone ekn nemi
    botage nama mokda machn
     

    MR.YOLO

    Well-known member
  • Nov 27, 2023
    3,425
    6,179
    113

    ivn

    Active member
  • Apr 15, 2023
    230
    197
    43
    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
    Bash:
    tdl login -T code
    enter the details it asks and log in
    5. list all the telegram chats to get the required chat id,
    Bash:
    tdl chat ls
    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, use 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 '.webm' && 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 !
     
    Last edited:

    lkkolla

    Well-known member
  • Sep 28, 2023
    1,167
    1,664
    113
    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
    Bash:
    tdl login -T code
    enter the details it asks and log in
    5. list all the telegram chats to get the required chat id,
    Bash:
    tdl chat ls
    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 !
    Thanks bro
     
    • Like
    Reactions: ivn