Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Tgram-DND

a helper/utils library to help build Telegram Bot Drag-And-Drop Applications
Documentation • Examples
Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About Project

tgram_dnd is a helper/utils library to help build Telegram Bot Drag-And-Drop application by seperating the bot logic into manageable chunks

(back to top)

Built With

  • tgram (Bot API Interaction)
  • jinja2 (string templating)

(back to top)

Getting Started

Prerequisites

Installation

1. Clone From Source (Not Recommended)
    * git clone https://github.com/PythonNoob999/tgram_dnd.git
    * cd tgram_dnd
    * python3 -m pip install . -U
    * done✅

2. Installing From PIP (Recommended)
    * python3 -m pip install tgram_dnd
    * done ✅

Usage

Bot Setup

from tgram_dnd import (
  App, BotConfig, MessageFlow, MessageBlock, Reply
)
from tgram import TgBot

bot = TgBot("INSERT_BOT_TOKEN")
app = App(
  bot=bot,
  config=BotConfig(
    strings="text.json",
    default_lang="en"
  ),
)

app.add_flows(
  MessageFlow(
    ...
  )
)

app.run()

Examples

Roadmap

  • Add Documentaion
  • Adding More Abstracted Methods
  • Configuration System (db_setup, strings, etc) (50%)
  • JsonToBlocks Converter

(back to top)

Contributing

Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the GPL-3 License. See LICENSE.txt for more information.

(back to top)

Contact

SpicyPenguin - telegram

(back to top)

Metadata

Release files for tgram-dnd 0.0.7b0

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

Source distribution (sdist)

Source distribution for tgram-dnd 0.0.7b0
File Size Uploaded Provenance Actions
tgram_dnd-0.0.7b0.tar.gz 26.3 kB Without provenance Details for tgram_dnd-0.0.7b0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tgram-dnd 0.0.7b0
File Interpreter ABI Platform Actions
tgram_dnd-0.0.7b0-py3-none-any.whl Python 3 none any Details for tgram_dnd-0.0.7b0-py3-none-any.whl

Total release size: 62.1 kB

Release files / tgram_dnd-0.0.7b0.tar.gz

Download URL tgram_dnd-0.0.7b0.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0fe9fefa68ad10eceff485b59d73f3598f31e8a5e37832f5eb439ac9ef47a8e6
BLAKE2b-256 checksum
How to use checksums
ed78995655e24a95bf28ac7a7b3fffe66be98f5ffcc836750bb944a542f657c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / tgram_dnd-0.0.7b0-py3-none-any.whl

Download URL tgram_dnd-0.0.7b0-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
873ae16876fa4a677302422b719a622b0ee57b021a350ebf2c345a89c80c08f4
BLAKE2b-256 checksum
How to use checksums
953cf18db67abd0a5d15690d984e7ad6c7ce6fa2e90dea5917fe779b43aaa9c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Security for tgram-dnd 0.0.7b0

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.

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