Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

A framework on top of Django and Python-telegram-bot for building Telegram bots

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ninagram, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size ninagram-0.1.4-py2.py3-none-any.whl (62.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size ninagram-0.1.4.tar.gz (27.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page