/Telagram_Bot

Build chat telegram chatbot using llm(openAI)

Primary LanguagePythonMIT LicenseMIT

Telagram Bot

Prerequisites

To follow this tutorial, you will need:

Python 3.8 or higher A Telegram account and a smartphone An OpenAI account and an API key

How to run?

STEPS:

Clone the repository

Project repo: https://github.com/

STEP 01- Create a conda environment after opening the repository

conda create -n telebot python=3.8 -y conda activate telebot

STEP 02- install the requirements pip install -r requirements.txt AIogram docs

https://docs.aiogram.dev/en/latest/

Telegram Setup: Search for botfather

/newbot

talkbot talkbot_bot Now click on url to access the bot

Make sure you collect the access token

Add in .env

OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

TELEGRAM_BOT_TOKEN=xxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx