Skip to main content

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

Metadata

Release files for ninagram 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ninagram 0.1.4
File Size Uploaded
ninagram-0.1.4.tar.gz 27.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ninagram 0.1.4
File Interpreter ABI Platform
ninagram-0.1.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 90.2 kB

Release files / ninagram-0.1.4.tar.gz

Download URL ninagram-0.1.4.tar.gz
Size 27.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cba27b06f13f32c3b54dc4e68a3d4b79409b5e113433b31ae239a27a84f60214
BLAKE2b-256 checksum
How to use checksums
baf01a601da46207aed06b89adc24e1b05fa454f54cac3c1b7cc115dfaa8cdcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

Release files / ninagram-0.1.4-py2.py3-none-any.whl

Download URL ninagram-0.1.4-py2.py3-none-any.whl
Size 62.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b6a74f9c9b8db43bfe4c0fb5205c1c3508c32525a6c7961dad8d3accd8f0a77f
BLAKE2b-256 checksum
How to use checksums
3378d4f5593cc3e67089653144607d3f74fc39fb67c062d76b32dd4abd5ac773
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page