Giter VIP home page Giter VIP logo

nana-tgbot's Introduction

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!

nana-tgbot's People

Contributors

ayrahikari avatar rukaaci avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.