> For the complete documentation index, see [llms.txt](https://baric6.gitbook.io/barics-knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://baric6.gitbook.io/barics-knowledge-base/development/api-and-scraping-sources/telegram-api-a-python-based-open-source-tool-for-telegram.md).

# Telegram-API: a Python-based open-source tool for Telegram

This tool connects to Telegram's API. It generates JSON files containing channel's data, including channel's information and posts. You can search for a specific channel, or a set of channels provided in a text file (one channel per line.)

Files are saved by default in a folder called output/data. These folders are created by the script. You can also give a specific output directory to store collected data.

Download&#x20;

{% embed url="<https://github.com/estebanpdl/telegram-tracker>" %}
