id / chatgpt-tg-bot

Simple Telegram bot that uses gpt-3.5-turbo model to generate text based on the chat history

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChatGPT Telegram Bot

Simple Telegram bot that uses gpt-3.5-turbo model to generate text based on the chat history.

  • uses pyTelegramBotAPI
  • limit usage based on user id
  • designed to be run on AWS Lambda (see ./deploy.sh, update profile and region if necessary)

Prerequisites

Configuration

The code uses environment variables for configuration:

To get Telegram user id, run the bot, send it a message, and obtain the id from the log.

./package.sh # fetch dependencies and create a zip file
./deploy.sh  # deploy zip package to AWS Lambda

About

Simple Telegram bot that uses gpt-3.5-turbo model to generate text based on the chat history


Languages

Language:Python 76.5%Language:Shell 23.5%