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)
- Host: GitHub
- URL: https://github.com/amruta33/telagram_bot
- Owner: amruta33
- License: mit
- Created: 2024-03-31T05:09:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-01T11:51:09.000Z (about 2 years ago)
- Last Synced: 2025-06-06T04:39:06.174Z (about 1 year ago)
- Topics: chatbot, llm, openai, python, telegram, telegram-api, telegram-bot
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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