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.4.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ninagram-0.1.4-py2.py3-none-any.whl (62.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ninagram-0.1.4.tar.gz.

File metadata

  • Download URL: ninagram-0.1.4.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for ninagram-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cba27b06f13f32c3b54dc4e68a3d4b79409b5e113433b31ae239a27a84f60214
MD5 268e64358c3b05088862acc72ffe4c0c
BLAKE2b-256 baf01a601da46207aed06b89adc24e1b05fa454f54cac3c1b7cc115dfaa8cdcd

See more details on using hashes here.

File details

Details for the file ninagram-0.1.4-py2.py3-none-any.whl.

File metadata

  • Download URL: ninagram-0.1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 62.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for ninagram-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b6a74f9c9b8db43bfe4c0fb5205c1c3508c32525a6c7961dad8d3accd8f0a77f
MD5 c6422a8b92a6703c7afaa11977a33c87
BLAKE2b-256 3378d4f5593cc3e67089653144607d3f74fc39fb67c062d76b32dd4abd5ac773

See more details on using hashes here.

Supported by

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