This Telegram bot is designed to fetch and share the latest news articles on cryptocurrencies. It uses the google-news-scraper
package to scrape news from Google News based on the user's input search term.
- Fetches the latest crypto news articles based on user's input.
- Sends a photo of the news article along with its title and link.
- Handles errors and notifies users accordingly.
- Start a chat with the bot.
- Send a topic or keyword related to cryptocurrencies.
- The bot will reply with the latest news articles related to the topic.
- Node.js
- npm or yarn
- Telegram bot token
-
Clone the repository:
-
Install dependencies:
-
Create a
.env
file and add your Telegram bot token: -
Run the bot:
BOT_TOKEN
- Your Telegram bot token.TELEGRAM_DELETE_MESSAGE_INTERVAL
- Message Interval.WHITELISTED_USERS
- [user Id, User Id] an array of allowed users.
Contributions, issues, and feature requests are welcome. Feel free to check [issues page] if you want to contribute.
- Google News Scraper
- Telegraf for Telegram bot framework