Telagram-Bot-using-GenAI

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:

  1. Search for botfather

  2. /newbot

    • mybot88
    • mybot88_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

Drive link for other integrations

Link