Skip to content
dlxarlPublic

About

Export Telegram channel content to Markdown

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tg2md

A simple Python tool to export messages from Telegram to Markdown format.

Features

  • Connects to Telegram via Telethon
  • Exports chat messages to Markdown
  • Easy configuration via config.json

Requirements

Setup

  1. Clone the repository:
    git clone https://github.com/dlxarl/tg2md.git
    cd tg2md
  2. Create and activate a virtual environment (optional but recommended):
    python3 -m venv venv
    source venv/bin/activate
  3. Install dependencies:
    pip install -r requirements.txt
  4. Set up your Telegram API credentials:
    • Run the script. On first launch, you will be prompted for your API ID and API Hash (get them at https://my.telegram.org/auth).
    • Credentials are saved in config.json (which is in .gitignore).

Usage

Run the main script:

python main.py

Follow the prompts to authenticate and export messages.

Notes

  • Do not share your API credentials or session files.

About

Export Telegram channel content to Markdown

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages