Skip to content

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.

Notifications You must be signed in to change notification settings

crusaderincode/article-saver-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published