Skip to main content

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.

Source Distribution

ninagram-0.1.3.tar.gz (27.6 kB view hashes)

Uploaded Source

Built Distribution

ninagram-0.1.3-py2.py3-none-any.whl (62.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page