Metadata-Version: 2.1
Name: ninagram
Version: 0.1.2
Summary: A framework on top of Django and Python-telegram-bot for building Telegram bots
Home-page: https://github.com/jefcolbi/ninagram
Author: jefcolbi
Author-email: jefcolbi@mboatek.com
License: MIT
Platform: UNKNOWN
Classifier: Natural Language :: English
Classifier: Natural Language :: French
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Requires-Python: >=3.6.0
Description-Content-Type: text/markdown
Requires-Dist: django
Requires-Dist: python-telegram-bot
Requires-Dist: tzlocal
Requires-Dist: django-timezone-field
Requires-Dist: loguru


Ninagram
===========

Ninagram is a Django app that let you build Telegram bots with the performant python-telegram-bot.

Do you have a Django website and you plan to back a telegram bot to it ? Then This library is for you.
Even if you want to start a telegram bot from scratch you are good to go with Ninagram

Installation

pip install ninagram


Usage

Fresh start

# create a new Django project
django-admin startproject myproject
cd myproject

# create a new app for your project
python manage.py startapp base

Then you can continue like with like an existing project

# create the states.py file that will contain the bot code
touch base/states.py

# add 'ninagram' to your INSTALLED_APPS in settings.py

then add this configuration to your settings.py

NINAGRAM = {
    "TOKENS": ['token_here'],
    "STATES_MODULES": ['base.states'],
    "WORKING_MODE": "polling",
}

Then start the bot
python manage.py startbot

Please note that you should be connected to internet for the bot to work correctly


