BotForge - Telegram Bot Library
BotForge is a lightweight Python library designed to simplify the development of Telegram bots. It provides a simple interface to interact with the Telegram Bot API and includes features for handling commands.
Features
- Easy setup for Telegram bots
- Command handling with decorators
- Simplified interaction with the Telegram Bot API
Installation
You can install BotForge using pip:
pip install BotForge
Usage
# Import BotForge and necessary modules
import time
from functools import wraps
from BotForge import BotForge, CommandContext
# Initialize BotForge with your bot token
bot = BotForge(token="YOUR_BOT_TOKEN")
# Define command handlers using decorators
@bot.command_handler("/start")
def hello(ctx):
bot.send_message(ctx.chat_id, f"Hello, {ctx.username}")
@bot.command_handler("/help")
def help_command(ctx):
bot.send_message(ctx.chat_id, f"Hello again! {ctx.username}")
# Start the bot
bot.start()
Contributing
Contributions are welcome! If you have any ideas, bug reports, or feature requests, please open an issue on the GitHub repository.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Replace "YOUR_BOT_TOKEN" with the actual token of your Telegram bot. Additionally, make sure to replace the placeholder link to the GitHub repository with the actual URL once you have it.
Feel free to add more sections to the README file as needed for your project.
Metadata
Release files for BotForge 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| BotForge-0.0.3.tar.gz | 3.9 kB | Without provenance | Details for BotForge-0.0.3.tar.gz |
Release files / BotForge-0.0.3.tar.gz
| Download URL | BotForge-0.0.3.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ec8b5eb1c175ac8860d697a26c13f2790f80f03fb8d8ab10cfa36815d16eb79
|
|
BLAKE2b-256 checksum How to use checksums |
56bd6b9842b6f28040712776f2b4b501a8ffa54af02b7525f530ab45c4775014
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Security for BotForge 0.0.3
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.