Skip to content

Latest commit

 

History

History
63 lines (27 loc) · 978 Bytes

README.md

File metadata and controls

63 lines (27 loc) · 978 Bytes

🤖 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:
git clone https://github.com/GottliebGlob/article-saver-bot.git

cd telegram-pdf-bot
  1. Setup Environment Variables

Rename the .env.sample to .env and update the BOT_TOKEN variable with your bot's token.


BOT_TOKEN=YOUR_TELEGRAM_BOT_TOKEN_HERE

  1. Install Dependencies:
    
    `npm install` 
    
  1. Run the Bot:
    
    `npm run start` 
    

🛠️ Built With

  • Telegraf - Modern Telegram bot framework for Node.js
  • Puppeteer - Headless Chrome Node.js API

📝 License

This project is open-source and available under the MIT License.