An open API service indexing awesome lists of open source software.

https://github.com/amruta33/telagram_bot

Build chat telegram chatbot using llm(openAI)
https://github.com/amruta33/telagram_bot

chatbot llm openai python telegram telegram-api telegram-bot

Last synced: 2 months ago
JSON representation

Build chat telegram chatbot using llm(openAI)

Awesome Lists containing this project

README

          

# 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