{"id":13988850,"url":"https://github.com/m4mallu/compress-pdf-tg-bot","last_synced_at":"2025-07-22T09:31:34.230Z","repository":{"id":46406723,"uuid":"417734207","full_name":"m4mallu/compress-pdf-tg-bot","owner":"m4mallu","description":"A Telegram bot can compress the size of PDF documents. Useful for digital documentations. ","archived":false,"fork":false,"pushed_at":"2022-07-16T10:38:26.000Z","size":22,"stargazers_count":23,"open_issues_count":0,"forks_count":44,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-29T07:37:02.356Z","etag":null,"topics":["compress","pdf","telegram-bot"],"latest_commit_sha":null,"homepage":"","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/m4mallu.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}},"created_at":"2021-10-16T06:03:18.000Z","updated_at":"2024-08-10T16:10:18.000Z","dependencies_parsed_at":"2022-07-22T09:22:19.465Z","dependency_job_id":null,"html_url":"https://github.com/m4mallu/compress-pdf-tg-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m4mallu/compress-pdf-tg-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4mallu%2Fcompress-pdf-tg-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4mallu%2Fcompress-pdf-tg-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4mallu%2Fcompress-pdf-tg-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4mallu%2Fcompress-pdf-tg-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m4mallu","download_url":"https://codeload.github.com/m4mallu/compress-pdf-tg-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4mallu%2Fcompress-pdf-tg-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266465090,"owners_count":23933064,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["compress","pdf","telegram-bot"],"created_at":"2024-08-09T13:01:23.907Z","updated_at":"2025-07-22T09:31:33.834Z","avatar_url":"https://github.com/m4mallu.png","language":"Python","funding_links":["https://www.paypal.me/space4renjith"],"categories":["Python"],"sub_categories":[],"readme":"\u003ch1 align=\"left\"\u003e\n    \u003ca href=\"https://github.com/m4mallu\"\u003ePdf Compressor Telegram Bot\n\u003c/a\u003e\n\u003c/h1\u003e\n\n#### A simple pdf size compressing telegram robot. Useful for digital documentation.\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cb\u003eMandatory Variables\u003c/b\u003e\u003c/summary\u003e\n    \u003cp align=\"left\"\u003e\n\n    API_HASH    -   Your API Hash from my.telegram.org\n    APP_ID      -   Your APP ID from my.telegram.org\n    BOT_TOKEN   -   Your bot token from @BotFather\n\u003c/p\u003e\n\u003c/details\u003e\n\u003cdetails\u003e\n    \u003csummary\u003e\u003cb\u003eDeploy\u003c/b\u003e\u003c/summary\u003e\n    \u003cp align=\"left\"\u003e\u003c/p\u003e\n        \u003cb\u003e\u003cu\u003eDeploy in VPS:\u003c/u\u003e\u003c/b\u003e\n        \u003cul\u003e\n            \u003cli\u003e\u003cstrong\u003eOpen a Linux Terminal and Run the below commands ( Stage: 1 )\u003c/strong\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003egit clone https://github.com/m4mallu/compress-pdf-tg-bot\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003ecd compress-pdf-tg-bot\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003eCreate a \u003ccode\u003econfig.py\u003c/code\u003e with the Mandatory variables (Refer sample_config.py) and save it in the bot directory.\u003c/li\u003e\n            \u003cli\u003e\u003cstrong\u003eRun the below commands in the same terminal ( Stage: 2 )\u003c/strong\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003evirtualenv -p python3 venv\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003e. ./venv/bin/activate\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003epip3 install -r requirements.txt\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003epython3 bot.py\u003c/code\u003e\u003c/li\u003e\n        \u003c/ul\u003e\n        \u003cb\u003e\u003cu\u003eDeploy in Heroku\u003c/u\u003e\u003c/b\u003e\n        \u003cul\u003e\n            \u003cli\u003e\u003cstrong\u003eClick the below button to deploy the bot in Heroku\u003c/strong\u003e\u003c/li\u003e\n            \u003ca href=\"https://heroku.com/deploy?template=https://github.com/m4mallu/compress-pdf-tg-bot\"\u003e\n            \u003cimg height=\"30px\" src=\"https://img.shields.io/badge/Deploy%20To%20Heroku-blueviolet?style=for-the-badge\u0026logo=heroku\"\u003e\n        \u003c/a\u003e\n        \u003c/ul\u003e\n\u003c/details\u003e\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cb\u003eDeveloper\u003c/b\u003e\u003c/summary\u003e\n    \u003cp align=\"left\"\u003e\n        \u003cimg alt=\"GPL3\" src =\"https://c.tenor.com/10Zdx_RXqgcAAAAC/programming-crazy.gif\" width=\"260px\" style=\"max-width:100%;\"/\u003e\u003cbr\u003e\n            \u003ca href=\"https://t.me/space4renjith\"\u003e\u003cb\u003eRenjith Mangal\u003c/b\u003e\u003c/a\u003e \u0026nbsp;|\u0026nbsp;\n                \u003ca href=\"https://t.me/rmprojects\"\u003e\u003cb\u003eUpdate Channel\u003c/b\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003c/details\u003e\n\u003cdetails\u003e\n    \u003csummary\u003e\u003cb\u003eDonate\u003c/b\u003e\u003c/summary\u003e\n    \u003cp align=\"left\"\u003e\u003cbr\u003e\n    \u003cb\u003eBuy me a coffee for the work !\u003c/b\u003e\u003cbr\u003e\n    \u003cimg src=\"https://telegra.ph/file/b926b7e8ea84826d81d8a.png\" width=\"260px\" style=\"max-width:100%;\"/\u003e\u003cbr\u003e\u003cbr\u003e\n      \u003ca href=\"https://www.paypal.me/space4renjith\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Donate-Me-blueviolet?style=for-the-badge\u0026logo=paypal\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\u003c/details\u003e\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cb\u003eLicense\u003c/b\u003e\u003c/summary\u003e\n    \u003cp align=\"left\"\u003e\n    \u003ca href=\"https://choosealicense.com/licenses/gpl-3.0/\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/License-GPLv3-blueviolet?style=for-the-badge\u0026logo=gplv3\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e      \n\u003c/details\u003e\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cb\u003eCredits\u003c/b\u003e\u003c/summary\u003e\n    \u003cp align=\"left\"\u003e\n      \u003ca href=\"https://github.com/pyrogram/pyrogram\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Pyrogram-MTProto%20API-orange?style=for-the-badge\u0026logo=pyrogram\" height=\"32.8\"\u003e\n    \u003c/a\u003e\u003cbr\u003e\n    \u003ca href=\"https://github.com/SpEcHiDe\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/-SpEcHiDe-orange\" height=\"30\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.thepythoncode.com/article/compress-pdf-files-in-python\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/-PDFNetPython3-orange\" height=\"30\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\u003c/details\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://t.me/space4renjith\"\u003e\n        \u003cimg alt=\"GPL3\" src =\"https://telegra.ph/file/c4f778ccfc576a954dd20.gif\" width=\"340\" height=\"214\"/\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4mallu%2Fcompress-pdf-tg-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm4mallu%2Fcompress-pdf-tg-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4mallu%2Fcompress-pdf-tg-bot/lists"}