{"id":13827370,"url":"https://github.com/revolter/FileConvertBot","last_synced_at":"2025-07-09T03:31:57.997Z","repository":{"id":41424576,"uuid":"153235760","full_name":"revolter/FileConvertBot","owner":"revolter","description":"Telegram Bot that converts some file types to native photo, audio or video Telegram messages.","archived":false,"fork":false,"pushed_at":"2023-02-08T00:52:09.000Z","size":392,"stargazers_count":54,"open_issues_count":29,"forks_count":27,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-16T18:34:09.540Z","etag":null,"topics":["bot","python","python3","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"https://t.me/FileConvertBot","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/revolter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-10-16T06:44:45.000Z","updated_at":"2024-11-02T23:46:30.000Z","dependencies_parsed_at":"2024-08-04T09:06:42.058Z","dependency_job_id":null,"html_url":"https://github.com/revolter/FileConvertBot","commit_stats":{"total_commits":212,"total_committers":2,"mean_commits":106.0,"dds":"0.047169811320754707","last_synced_commit":"7bcc2c7bf06542674f1f5c5c922208f31ccf18bd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolter%2FFileConvertBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolter%2FFileConvertBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolter%2FFileConvertBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolter%2FFileConvertBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/revolter","download_url":"https://codeload.github.com/revolter/FileConvertBot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225481528,"owners_count":17481175,"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":["bot","python","python3","telegram","telegram-bot"],"created_at":"2024-08-04T09:01:54.784Z","updated_at":"2024-11-20T06:31:41.847Z","avatar_url":"https://github.com/revolter.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# \u003cimg src=\"/images/logo.png\" width=\"28\"/\u003e File Convert Bot\n\n## Introduction\n\nTelegram Bot that converts _(for now)_ AAC, OPUS, MP3 and WebM files to voice\nmessages, HEVC and MP4 (MPEG4, VP6 and VP8) files to video messages or video\nnotes (rounded ones), video messages to video notes (rounded ones), videos from\nsome websites to video messages, PDF files to photo messages _(currently only\nthe first page)_, image files to stickers. It also converts voice messages to\nMP3 files and stickers to photo messages. It works in groups too!\n\nThe bot currently runs as [@FileConvertBot](https://t.me/FileConvertBot).\n\n**All the processing is done in-memory, so no file is ever saved on the disk,\nnot even temporary!**\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your\nlocal machine for development and testing purposes.\n\n### Prerequisites\n\nYou need to install [Homebrew](https://brew.sh) by running:\n\n```sh\n/usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"\n```\n\n### Installing\n\nInstall the global dependencies by running:\n\n```sh\nsudo apt install ffmpeg poppler-utils\n```\n\non Linux or\n\n```sh\nbrew install ffmpeg poppler\n```\n\non macOS.\n\nThen clone the project and install the dependencies by running:\n\n```sh\ncd /desired/location/path\ngit clone https://github.com/revolter/FileConvertBot.git\ncd FileConvertBot\n\ncurl https://pyenv.run | bash\nexport PATH=\"$HOME/.pyenv/bin:$PATH\"\nsudo apt update\nsudo apt install make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev\npyenv install 3.9.0\npyenv global 3.9.0\n\ncurl -sSL https://install.python-poetry.org | python -\npoetry shell\npoetry install\n\ncd src\ncp config_sample.cfg config.cfg\n```\n\nThen, edit the file named `config.cfg` inside the `src` folder with the correct\nvalues and run it using `./main.py --debug`.\n\nUse `exit` to close the virtual environment.\n\n## Deploy\n\nYou can easily deploy this to a cloud machine using\n[Fabric](http://fabfile.org):\n\n```\ncd /project/location/path\n\npoetry shell\n\ncp fabfile_sample.cfg fabfile.cfg\n```\n\nThen, edit the file named `fabfile.cfg` inside the root folder with the correct\nvalues and run Fabric using:\n\n```\nfab setup\nfab deploy\n```\n\nYou can also deploy a single file using `fab deploy --filename=main.py` or `fab\ndeploy --filename=pyproject.toml`.\n\n## Dependencies\n\nCurrently, you have to manually install `poppler` in order for `PDF` to `PNG`\nconversion to work:\n\n- macOS: `brew install poppler`\n- Ubuntu: `sudo apt-get install poppler-utils`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevolter%2FFileConvertBot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevolter%2FFileConvertBot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevolter%2FFileConvertBot/lists"}