{"id":25403990,"url":"https://github.com/right-git/koshechka","last_synced_at":"2025-07-17T10:38:33.522Z","repository":{"id":274183030,"uuid":"922163069","full_name":"right-git/koshechka","owner":"right-git","description":"Koshechka 🐾 is a tool for converting Telegram sessions 🔄 and exporting chat data 💬📦","archived":false,"fork":false,"pushed_at":"2025-04-28T18:17:36.000Z","size":25,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T19:21:57.055Z","etag":null,"topics":["python","session-management","telegram-converter","telegram-export","telegram-sessions-converter","telethon"],"latest_commit_sha":null,"homepage":"https://right-code.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/right-git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-25T13:43:35.000Z","updated_at":"2025-04-28T18:17:40.000Z","dependencies_parsed_at":"2025-01-25T14:37:30.754Z","dependency_job_id":null,"html_url":"https://github.com/right-git/koshechka","commit_stats":null,"previous_names":["right-git/koshechka"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/right-git/koshechka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/right-git%2Fkoshechka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/right-git%2Fkoshechka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/right-git%2Fkoshechka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/right-git%2Fkoshechka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/right-git","download_url":"https://codeload.github.com/right-git/koshechka/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/right-git%2Fkoshechka/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265596139,"owners_count":23794843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","session-management","telegram-converter","telegram-export","telegram-sessions-converter","telethon"],"created_at":"2025-02-16T03:38:38.781Z","updated_at":"2025-07-17T10:38:33.493Z","avatar_url":"https://github.com/right-git.png","language":"Python","readme":"# Koshechka\n\nThis project is a Python-based tool for managing Telegram sessions and data. It provides three main functionalities:\n\n1. Convert Telegram tdata files to string sessions.\n2. Convert string sessions back to tdata.\n3. Dump messages, media, and user data from Telegram chats or groups.\n\n---\n\n## Screenshots\n\n![Screenshot](./screenshots/image.png)\n\n---\n\n## Features\n\n- **Session Management**: Seamlessly convert between tdata and string session formats.\n- **Data Export**: Download and export messages, photos, videos, and voice messages from Telegram dialogs or group chats.\n- **User-Friendly**: Console-based interface with detailed logs.\n\n---\n\n## Requirements\n\nTo use this project, ensure you have the following Python dependencies installed:\n\n- `loguru`\n- `colorama`\n- `telethon`\n- `opentele`\n- `cryptg`\n- `tqdm`\n\nYou can install the required dependencies by running:\n```bash\npip install -r requirements.txt\n```\n\n---\n\n## Usage\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/right-git/koshechka.git\ncd koshechka\n```\n\n### 2. Set Up Configuration\n\nBefore running the project, set up your Telegram API credentials:\n\n- `API_ID`: Obtain this from https://my.telegram.org.\n- `API_HASH`: Obtain this from https://my.telegram.org.\n\nYou can provide these values in a `config.py` file:\n\n```python\nAPI_ID = your_api_id\nAPI_HASH = \"your_api_hash\"\n```\n\n### 3. Run the Script\n\n```bash\npython main.py\n```\n\n### 4. Choose an Option\n\nWhen prompted, select one of the modes:\n\n1. Convert tdata to string session\n2. Convert string session to tdata\n3. Dump messages and media from a chat or group\n\n---\n\n## File Descriptions\n\n- **main.py**: The entry point of the project that provides a console interface for the user.\n- **converter.py**: Contains the logic for converting tdata to string sessions and vice versa.\n- **tgdumper.py**: Handles the exporting of messages and media from Telegram chats or groups.\n\n---\n\n\n## Contribution\n\nFeel free to fork the repository and submit pull requests. Suggestions and issues are welcome!\n\n---\n\n## Notes\n\n- Ensure that you do not share sensitive data such as `API_ID`, `API_HASH`, or session files publicly.\n- The tool is intended for ethical use only. Always respect Telegram's Terms of Service.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fright-git%2Fkoshechka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fright-git%2Fkoshechka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fright-git%2Fkoshechka/lists"}