/telegram-bot

This is a Telegram bot made using JavaScript

Primary LanguageJavaScriptMIT LicenseMIT

Telegram-Bot

This bot is made with the help of npm module node-telegram-bot-api and written in nodejs.

Installation

After Forking and cloning the repository into your desktop use the npm(Node Package Manager) write the following commands in your cmd(windows) or terminal(Mac/Linux)

npm install

The Above command would install all the required dependencies for your project.
Now create a file name .env in the same directory as your local copy of repo. Add the following contents in your file

BOT_TOKEN=<Your_Bot_Token> save your file.

Usage

npm start

This command would start your nodejs server and your program would run.

API Docs please follow api docs to use more feature provided by the library and improvise the bot

Info

Before starting to make any bot please get the API token from botfather and set up your bot account.
Please Follow the instructions carefully while setting up your account and remember your token and not share with anyone make sure to create .env file.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.