Skip to content

This project is a Telegram bot built with Node.js, TypeScript, and Express.js, using AI21 for AI functionalities. Follow the instructions below to set up and run the bot.

Notifications You must be signed in to change notification settings

UlviParviz/telegram-ai-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram AI Bot

This project is a Telegram bot built with Node.js, TypeScript, and Express.js, using AI21 for AI functionalities. Follow the instructions below to set up and run the bot.

Getting Started

1. Clone the Repository

First, clone the repository to your local machine:

git clone https://github.com/UlviParviz/telegram-ai-bot.git
cd telegram-ai-bot

2. Install Dependencies

Install the necessary dependencies using npm:

npm install

3. Configure Environment Variables

Create a .env file in the root of your project directory and add the following environment variables:

TELEGRAM_BOT_TOKEN= 
AI21_API_KEY=
BOT_NAME=
  • TELEGRAM_BOT_TOKEN: Obtain this token from BotFather on Telegram after creating a new bot.
  • AI21_API_KEY: Get your API key by registering on AI21.

4. Start the Application

Run the application using the following command:

npm start

5. Interact with Your Bot

After starting the application, you can interact with your bot on Telegram. Search for the bot you created with BotFather and start chatting with it.

About

This project is a Telegram bot built with Node.js, TypeScript, and Express.js, using AI21 for AI functionalities. Follow the instructions below to set up and run the bot.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published