{"id":20442515,"url":"https://github.com/plibither8/bookbroker","last_synced_at":"2025-08-30T10:41:44.177Z","repository":{"id":107607416,"uuid":"385842178","full_name":"plibither8/bookbroker","owner":"plibither8","description":"🤖📚 Telegram bot to convert and email PDFs, EPUBs or MOBIs to your Kindle","archived":false,"fork":false,"pushed_at":"2022-09-16T16:54:22.000Z","size":15087,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T23:37:56.163Z","etag":null,"topics":["epub","kindle","mobi","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"https://t.me/bookbrokerbot","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plibither8.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":"2021-07-14T06:48:49.000Z","updated_at":"2024-05-12T00:45:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e0d3378-af76-4f3f-9deb-af969febfda9","html_url":"https://github.com/plibither8/bookbroker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"plibither8/typescript","purl":"pkg:github/plibither8/bookbroker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plibither8%2Fbookbroker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plibither8%2Fbookbroker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plibither8%2Fbookbroker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plibither8%2Fbookbroker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plibither8","download_url":"https://codeload.github.com/plibither8/bookbroker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plibither8%2Fbookbroker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272839668,"owners_count":25001862,"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-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["epub","kindle","mobi","telegram","telegram-bot"],"created_at":"2024-11-15T09:41:10.862Z","updated_at":"2025-08-30T10:41:44.122Z","avatar_url":"https://github.com/plibither8.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bookbroker\n\n\u003e 🤖📚 Telegram bot to convert and email PDFs, EPUBs or MOBIs to your Kindle\n\n[**@bookbrokerbot**: Start a chat with the bot!](https://t.me/bookbrokerbot)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/demo.gif\" height=\"500\"/\u003e\n\u003c/p\u003e\n\n## Self-host\n\n### Create a Telegram Bot\n\nYou would first need to create a Telegram bot and get the bot's access token. Fortunately, it's pretty simple and easy: you can create one with [@BotFather](https://t.me/BotFather).\n\nMake sure to take note of the token received! It should look like this: `3141592653:KAS_JFD04YEGFxbQV4FTPetQpZefUhr37HC`.\n\n### Get your Telegram Chat ID\n\nThe `chat_id` identifies you on Telegram. You can get it by `/start`ing a chat with [@RawDataBot](https://t.me/RawDataBot) or [some other ways](https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id). It can be a positive or negative number.\n\n### Setup the Server\n\n1. Clone this repo: `git clone https://github.com/plibither8/bookbroker`\n2. Install dependencies: `pnpm install`\n3. Create `config.ts` and `.env` files from their examples: `cp config.example.ts config.ts`, `cp .env.example .env`\n4. Edit the `config.ts` and `.env` file with **your values**\n\n#### Development\n\nInstall ngrok: [ngrok.com](https://ngrok.com).\n\nThe project uses ngrok, nodemon and ts-node for local development. Do make sure to have `ENVIRONMENT=\"dev\"` in your local .env file.\n\nThe domain used in development is provided by [ngrok](https://ngrok.com), thus the local config can leave the `domain` key empty.\n\n```sh\n$ pnpm dev\n```\n\n#### Production\n\nThe project uses `tsc` to build the files. On production, the webhook domain is determined by the the `domain` key in the config.ts file.\n\n```sh\n$ pnpm build\n$ pnpm run\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplibither8%2Fbookbroker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplibither8%2Fbookbroker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplibither8%2Fbookbroker/lists"}