Skip to content

A Simple, Fast, Customizable, Ai powered Userbot for Telegram with most easiest installation. Built in python using pyrofork(pyrogram)

License

Notifications You must be signed in to change notification settings

The-MoonTg-project/Moon-Userbot

Repository files navigation

🌕 Moon-Userbot

Moon-Userbot

Open Source Love Maintenance CodeFactor DeepSource GitHub Forks GitHub Stars Last commit Size Contributors License PRs Welcome

A Simple, Fast, Customizable, Ai powered Userbot for Telegram made after Dragon-Userbot abandoned

🤖 Ai powers

  • Gemini Pro Ai [ ✅ ]
    • Ask/Chat with Ai
    • Get details from image
    • Cooking instructions
    • Ai Marketer
  • Cohere Coral Ai [ ✅ ]
    • Ask/Chat with Ai
    • UP-TO Date Info
    • Site-Search Support
    • Chat History Support
  • ChatGPT 3.5 Turbo [ ✅ ]
    • Ask/Chat with Ai
  • SDXL [ ✅ ]
  • DALL-E 3 [ ✅ ]
  • Upscaling [✅]
  • Text to Image [✅]

🚀 Installation

🏕️ Necessary Vars

  • API_ID - Get it from my.telegram.org
  • API_HASH - Get it from my.telegram.org
  • PM_LIMIT - set your pm permit warn limit
  • DATABASE_URL - ONLY for MongoDB, your mongodb url
  • DATABASE_NAME - set to db.sqlite3 if want to use sqlite3 db else leave blank
  • DATABASE_TYPE - set to sqlite3 if want to use sqlite3 db else leave blank

⛺ Optional Vars

  • STRINGSESSION
    • only If you want to use on cloud hosts use string_gen.py to generate OR Run on Repl.it

Important

STRINGSESSION is necessary for deployment through Docker/Cloud Host etc.

  • APIFLASH_KEY - ONLY, If you want to use web screnshot plugin You can get it from here

  • RMBG_KEY - ONLY, If you want to use removbg plugin You can get it from here

  • VT_KEY - ONLY, If you want to use VirusTotal plugin You can get it from here

  • GEMINI_KEY - ONLY, If you want to use gemini ai plugin You can get it from here

  • COHERE_KEY - ONLY, If you want to use cohere ai plugin You can get it from here

  • VCA_API_KEY - ONLY, If you want to use ai tools like sdxl,upscale plugin You can get it from here

☁️ Cloud Host

Koyeb Heroku Render
Deploy To Koyeb Deploy To Heroku Deploy to Render

🐳 Docker

docker run --env API_ID=your_api_id --env API_HASH=your_api_hash --env DATABASE_TYPE=db_type --env STRINGSESSION=your_string_session --env PM_LIMIT=pm_permit_warn_limit --env DATABASE_NAME=db_name --env DATABASE_URL=mongo_db_url --env APIFLASH_KEY=api_flash_key --env RMBG_KEY=rmbg_key --env VT_KEY=vt_key --env GEMINI_KEY=gemini_key --env COHERE_KEY=cohere_key --env VCA_API_KEY=vc_key -d qbtaumai/moonuserbot:latest

Important

Make Sure you add appropriate env vars

🖥️ Local Host

Linux, Windows [only wsl]

Update the packages

sudo apt update && sudo apt upgrade -y

Install Git

Tip

Ignore if already installed

sudo apt install git

Clone the repo

git clone https://github.com/The-MoonTg-project/Moon-Userbot.git

Setup

cd Moon-Userbot/ && sudo bash install.sh

📱 Termux

Tip

use GitHub version


Full Installation instruction Given here

Note

If you choose MongoDB for your cloud then you need to setup mongo_db_url**

Recommended: sqlite

🐩 Contributions

Contributions of any type are welcome like custom_modules etc. Feel free to do pull-request's with your changes!

Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub

👨🏻‍💻 Support

👨🏻‍💼 Credits

Licence

                    GNU GENERAL PUBLIC LICENSE
                        Version 3, 29 June 2007

  Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
  Everyone is permitted to copy and distribute verbatim copies
  of this license document, but changing it is not allowed.

                             Preamble

   The GNU General Public License is a free, copyleft license for
 software and other kinds of works.