项目作者: viktor02

项目描述 :
This is how Telegram voices export should look like.
高级语言: Python
项目地址: git://github.com/viktor02/TelegramVoicesGrabber.git
创建时间: 2020-11-30T20:29:13Z
项目社区:https://github.com/viktor02/TelegramVoicesGrabber

开源协议:MIT License

下载


Grab Telegram Voices

Why?

Initially, Telegram exports files without any indication of the sender in the file name.
With this script, you can definitely move voice messages to a folder that is convenient for you.

  1. +---chats
  2. | +---chat_01
  3. | | ---stickers
  4. | | ---voice_messages
  5. | | --- audio_2@02-11-2019_15-55-18.ogg
  6. | +---chat_03
  7. | | ---stickers
  8. | +---chat_04
  9. | | ---stickers
  10. | | ---voice_messages
  11. | | --- audio_2@02-11-2029_25-45-11.ogg
  12. | \---chat_05
  13. | ---voice_messages
  14. ----result.json

Example of use

  1. (venv) grabtelegramvoices> python .\main.py
  2. # Telegram Voices Grabber
  3. 0 Mark
  4. 1 Alice
  5. 2 Bob
  6. Choose contact to export:
  7. > 1
  8. Select the folder where you want to save the files:
  9. > exported/Alice

Export voice messages from Alice to ./exported/Alice/ folder

  1. +---exported
  2. | ---Alice
  3. | --- audio_2@02-11-2029_25-45-11.ogg

How I can export voices from Telegram?

  1. Go to Settings->Advanced->Export Telegram Data

  2. Then select “voice messages” in Media export settings and check Machine-readable JSON in Location and format


  1. Click the Export button

If you have problems with this

  1. Open folder and make sure that the file is result.json exists
  2. Move the script to a folder and run it.