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
Built Distribution
Hashes for ninagram-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca2149bf2eee2ed976cfed1202f4ca2c0eee469ce64aa53d70cc2b99a72d5604 |
|
MD5 | e3484338b3312da4d16666a5d0b40148 |
|
BLAKE2b-256 | 5bd168176cbe20ec26556ca78734ea4acbc57aecd99c9ba77bc6d656d4b65ab0 |