Skip to content

A basic Telegram Bot to chat with chatGPT and send images

Notifications You must be signed in to change notification settings

LoyTakian/Telegram-Bot

Repository files navigation

Telegram Bot

This is a simple Telegram Bot made for learning purposes. It main focus are the weebs from Telegram, as it's main features were made based on them. You can contact her through here: https://t.me/Rem_u_bot

Features

  • /ai {message} Using this command you can chat with chatGPT.
    For example: /ai Tell me a joke

  • /imagem {tags} Using this command you can request an image from the site yande.re.
    For example: /imagem rem_(re_zero) feet
    *Remember to use valid tags and separate them by 'space'

  • /nhentai {code} Using this command you can get a formatted link of a gallery from nhentai.
    For example: /nhentai 192327

  • /fumo Using this command you can request an image of a random fumo doll.

Installation

*Make sure to have pip and venv working.

  1. Clone this repository:
git clone $repo_link
  1. Go to the repository folder:
cd $repo_name
  1. Create a venv and install the dependencies:
python3 -m venv venv &&
source venv/bin/activate &&
pip install -r requirements.txt
  1. Done !

Usage

  • Run the start.sh file by double-clicking it or using bash sh start.sh
  • If it doesn't work, use python in a terminal window python main.py

Pre requisites

  • Have created a bot in Telegram.
  • Have created an account in OPENAI
  • Have created a .env file based on the .env.example and configured your tokens from Telegram and Openai

About

A basic Telegram Bot to chat with chatGPT and send images

Topics

Resources

Stars

Watchers

Forks