Skip to content

Fast and simple way to launch your own AI Telegram chat bot based on GitHub Models

License

Notifications You must be signed in to change notification settings

S0lnyx/GitHub-Models-Telegram-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Models Telegram Bot

This mini-project allows you to quickly create and launch your own simple neural network chat bot in Telegram based on any model provided by GitHub Models.

Installation

  1. Create telegram bot via @BotFather and get bot token
  2. Clone this repo:
    git clone https://github.com/S0lnyx/GitHub-Models-Telegram-Bot.git
  3. Go to repo directory:
    cd GitHub-Models-Telegram-Bot
  4. Create python3 venv and install reuired modules (before make sure you installed python3-full package):
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txt
  1. Create config file:
sudo touch .env
sudo nano .env
  1. Write required parameters:
GITHUB_KEY = "Your_presonal_access_token_goes_here"
TOKEN = "Your_telegram_bot_token"
BOT_USERNAME = "@YourBotUsername"
MODEL_NAME = "Model_name_from_models_marketplace"

Save .env file and now you ready to go, launch bot by using $python3 main.py

Note from author

This is my first repository like this written in Python for practical purposes, this repository is still subject to improvement, but you are also free to take this code, modify it or leave any comments or suggestions, I will read them all and take them into consideration.

About

Fast and simple way to launch your own AI Telegram chat bot based on GitHub Models

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages