Tgram Darg-And-Drop helper is a lib to help building DragAndDrop applications, or simply just to make bots faster
Project description
Tgram-DND
a helper/utils library to help build Telegram Bot Drag-And-Drop ApplicationsDocumentation • Examples
Table of Contents
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
Built With
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()
Roadmap
- Add Documentaion
- Adding More Abstracted Methods
- Configuration System (db_setup, strings, etc) (50%)
- JsonToBlocks Converter
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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the GPL-3 License. See LICENSE.txt for more information.
Contact
SpicyPenguin - telegram
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tgram_dnd-0.0.7b0.tar.gz.
File metadata
- Download URL: tgram_dnd-0.0.7b0.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fe9fefa68ad10eceff485b59d73f3598f31e8a5e37832f5eb439ac9ef47a8e6
|
|
| MD5 |
aeb9ae0258516dec0a3e0ae7e07c2f6b
|
|
| BLAKE2b-256 |
ed78995655e24a95bf28ac7a7b3fffe66be98f5ffcc836750bb944a542f657c3
|
File details
Details for the file tgram_dnd-0.0.7b0-py3-none-any.whl.
File metadata
- Download URL: tgram_dnd-0.0.7b0-py3-none-any.whl
- Upload date:
- Size: 35.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
873ae16876fa4a677302422b719a622b0ee57b021a350ebf2c345a89c80c08f4
|
|
| MD5 |
36f87dc7304b8b022ec68c620d1cc0a4
|
|
| BLAKE2b-256 |
953cf18db67abd0a5d15690d984e7ad6c7ce6fa2e90dea5917fe779b43aaa9c5
|