Abhishekbotx / Telegram-ChatBot

Telegram ChatBot and NodeLearning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram Chat Bot | File Reading and Streams

  • This repository contains the code for a Telegram chat bot developed using the Telegraf library in Node.js. The bot provides basic functionality such as greeting messages, responding to commands, and processing text inputs from users. Additionally, it includes features for reading files, transforming data using streams, and interacting with users via the Telegram messaging platform.

  • Getting Started: To set up the project locally, follow these steps:

  • Clone the Repository:

git clone <https://github.com/Abhishekbotx/Telegram-ChatBot.git>

  • Install Dependencies: Navigate to the project directory and install the required dependencies using npm:

cd Telegram_ChatBot
npm install
Set Environment Variables:<using you bot_api_key>
  • Create a .env file in the root directory of the project and add the necessary environment variables, including the Telegram bot API key (BOT_KEY)

  • Run the following command to start the bot:

npm start

  • The bot should now be running and ready to respond to messages on Telegram.

Features :

Greeting Messages: The bot sends a welcome message to users when they start a conversation.
Command Handling: Responds to various commands such as /start, /help, and custom commands like /whomadethis.
Made this for fun and Learning




About

Telegram ChatBot and NodeLearning


Languages

Language:JavaScript 100.0%