This bot allows you to monitor groups for keywords appearing in messages and notify and give you a link to the message with the keyword.
The bot is currently running and can be tested. You can interact with the bot by visiting the following link:
Try the Search Lead Bot
To install and run the bot, follow these steps:
-
Clone the repository:
git clone https://github.com/mahhis/search-lead-bot.git
-
Navigate to the project folder:
cd search-lead-bot -
Launch the mongo database locally
-
Create a
.envfile and add the necessary environment variables. Example at.env.example. -
Install dependencies using Yarn:
yarn install
-
To start the bot, run the following command::
yarn start
-
TOKEN— Telegram bot token -
MONGO— URL of the mongo database -
API_HASH- go to https://my.telegram.org/apps and get it -
API_ID- go to https://my.telegram.org/apps and get it -
SESSION- After receiving the ID and Hash, run the startClient filenode src/startClient.js
then go through the authorization and the value SESSION will appear in the console