Skip to main content

A Django app for Telegram bots.

Project description

django-nublado-telegram

A Django app for building Telegram bots using python-telegram-bot.


Features

  • Bot registry system
  • Webhook Django view
  • Bot lifecycle management
  • Handler policy system
  • Async-safe
  • Job utilities (scheduled message cleanup)

Installation

pip install django-nublado-telegram
INSTALLED_APPS = [
    ...,
    "django_nublado_telegram",
]

Requirements

  • Python 3.12
  • python-telegram-bot
  • django-nublado-core

Models

TelegramUser

A model for Telegram.


App settings

from django_nublado_translation.conf.app_settings import app_settings

app_settings.BOT_MODE

Available settings

Setting Default
BOT_MODE "polling"

Override

DJANGO_NUBLADO_TELEGRAM = {
    "BOT_MODE": "webhook",
}

Testing

pytest

Requires pytest-django.

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

django_nublado_telegram-0.1.3.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

django_nublado_telegram-0.1.3-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file django_nublado_telegram-0.1.3.tar.gz.

File metadata

  • Download URL: django_nublado_telegram-0.1.3.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for django_nublado_telegram-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1c224e97a5d12ec162ba235b3425703dd2765abdd096fed85a4f29bf01f3c7ea
MD5 21ad37880fd27c867a38203c60cd85a5
BLAKE2b-256 d1621855c34fba6ecfe67f61fca20aeb1a9d984f55b2ebec1af76ac39a1ab569

See more details on using hashes here.

File details

Details for the file django_nublado_telegram-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_nublado_telegram-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0cbb67024bf36452dcae24e4857113db737139e302cc902e72c0eac0ddcaf066
MD5 5f00b30ed24f40f3aa316e8d7cf2ffea
BLAKE2b-256 0afa2709d845260b116ab1dc8541de0d176e7b15aebae493ecbbdd41ddd6c57b

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