Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crusaderincode/article-saver-bot
This bot listens to incoming messages for valid URLs. When a URL is provided, the bot fetches the website content and returns it as a PDF file.
https://github.com/crusaderincode/article-saver-bot
bot html-pdf-converter html-pdf-service nodejs open-source pdf-generation puppeteer telegraf telegram telegram-bot webscraping
Last synced: about 12 hours ago
JSON representation
This bot listens to incoming messages for valid URLs. When a URL is provided, the bot fetches the website content and returns it as a PDF file.
- Host: GitHub
- URL: https://github.com/crusaderincode/article-saver-bot
- Owner: crusaderincode
- Created: 2023-10-11T11:59:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-12T17:44:24.000Z (about 1 year ago)
- Last Synced: 2024-09-10T17:34:13.340Z (2 months ago)
- Topics: bot, html-pdf-converter, html-pdf-service, nodejs, open-source, pdf-generation, puppeteer, telegraf, telegram, telegram-bot, webscraping
- Language: JavaScript
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🤖 Telegram PDF Bot
This bot listens to incoming messages for valid URLs. When a URL is provided, the bot fetches the website content and returns it as a PDF file.
https://t.me/article_saver_bot
## 🚀 Getting Started
1. **Clone the Repository**:
```bash
git clone https://github.com/GottliebGlob/article-saver-bot.git
cd telegram-pdf-bot
```
2. **Setup Environment Variables**
Rename the `.env.sample` to `.env` and update the `BOT_TOKEN` variable with your bot's token.
```plaintext
BOT_TOKEN=YOUR_TELEGRAM_BOT_TOKEN_HERE
```
3. **Install Dependencies**:
```bash
`npm install`
```
4. **Run the Bot**:
```bash
`npm run start`
```### 🛠️ Built With
- [Telegraf](https://telegraf.js.org/) - Modern Telegram bot framework for Node.js
- [Puppeteer](https://pptr.dev/) - Headless Chrome Node.js API### 📝 License
This project is open-source and available under the MIT License.