Skip to content

Hyakei/Nana-TgBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nana-TgBot

Userbot + Assistant for Telegram

Currently in WIP, so do with you own risk! Go to our group support for get update about this @AyraSupport

Q: Why need Assistant (Real bot)?
A: Because real bot will help you a lot for many things, and make user easy to use it.
For windows user, please use Python 3.6.7 release or Newest instead!

Installation guide

This is long boring confused stuff if you new in this, please read carefully. If you need something, just come to @AyraSupport to get help.

Create a Real Bot

  1. Go to @BotFather, then type /newbot
  2. Insert your bot Name, for example My Assistant
  3. Then insert your bot username It must end in bot. for example MyAssistantBot.
  4. Copy Token for later

Configuration

  1. Register your account API here
  2. Copy api_id and api_hash for config later.
  3. Go to @EmiliaHikariBot or @MissRose_bot, and type /id. Copy your ID account.
  4. Rename config.example.py to confing.py in nana folder
  5. And change config like this:
api_id = 12345 # From guide no 2
api_hash = "123456789abcdefghijklmnopqrstuvw" # From guide no 2

ASSISTANT_BOT_TOKEN = "TOKEN" # Replace TOKEN from guide above (@BotFather)

Owner = 388576209 # From guide no 3
AdminSettings = [388576209] # From guide no 3

Then you ready to go next guide

Install Requirements

Install all requirements by python, in your terminal type this:

pip install -r requirements.txt

If you're using pipenv, use this instead:

pipenv install -r requirements.txt

Install Database

This is required for some features, if you want to use database, follow this guide.

  • Install postgresql
sudo apt-get update && sudo apt-get install postgresql
  • Change user to postgres
sudo su - postgres
  • Create a user, change YOUR_USER with you own user
createuser -P -s -e YOUR_USER
  • Create a database, dont forget to change YOUR_USER and YOUR_DB_NAME
createdb -O YOUR_USER YOUR_DB_NAME
  • Test your database (optional)
psql YOUR_DB_NAME -h YOUR_HOST YOUR_USER
  • After create a database, your database URL should be like this
sqldbtype://YOUR_USER:password@localhost:5432/YOUR_DB_NAME

Run NanaBot and Assistant

To run this bot, just type

python -m nana

Or if you're using pipenv, do this instead

pipenv run python -m nana

Getting update

Assistant will check update every bot is running, make sure you're on official branch.

To check update manual, just type update with Command (default is .) in your nana bot.

To get update, type update now in your nana bot.

Or you can update via Assistant (If they notify you), just click Update Now and wait for update!

About

Userbot + Bot settings for Telegram. Currently in WIP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages