This is a simple Telegram bot that sends notifications to
a specified chat using the Telegram Bot API. The bot is
built using Node.js and the node-telegram-bot-api library.
- Sends notifications to a Telegram chat.
- Uses environment variables for configuration.
-
Clone the repository:
git clone https://github.com/warathepj/nodejs-telegram-noti cd <repository-directory>
-
Install the required dependencies:
npm install
-
Create a
.envfile in the root directory and add your bot token and chat ID:BOT_TOKEN=your_bot_token_here CHAT_ID=your_chat_id_here
To run the bot, use the following command:
node index.jsThe bot will send a test notification when it starts.
BOT_TOKEN: Your Telegram bot token obtained from the BotFather.CHAT_ID: The chat ID where the bot will send notifications.
This project is licensed under the MIT License.
