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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ninagram-0.1.4.tar.gz | 27.6 kB | Without provenance | Details for ninagram-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ninagram-0.1.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for ninagram-0.1.4-py2.py3-none-any.whl |
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
|
Security for ninagram 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.