PyBotRex simplifies Telegram bot development with an intuitive interface for commands, messaging, buttons, and more. Build interactive Telegram bots effortlessly with a clean and reusable design.
- Command Handling: Easily add commands with custom callbacks.
- Message Handling: Process messages with text or media filters.
- Inline Buttons: Create interactive inline keyboard buttons.
- Advanced Features: Inline queries, error handling, and custom updates.
- Async Support: Fully asynchronous with
python-telegram-bot
20.0+.
Install PyBotRex using pip:
pip install PyBotRex
Here’s how you can build a basic bot:
from PyBotRex import PyBotRex
from telegram import Update
from telegram.ext import ContextTypes
# Initialize the bot
bot = PyBotRex("YOUR_TELEGRAM_BOT_TOKEN")
# Define a command
async def start_command(update: Update, context: ContextTypes.DEFAULT_TYPE):
await bot.reply(update, "Welcome to PyBotRex!")
# Add the command
bot.add_command("start", start_command)
# Run the bot
bot.start()
Full documentation is available here.
Encountered a bug? Report it here.
This project is licensed under the CC-BY-SA 4.0. See the LICENSE for more details.
Thanks to the community and contributors of python-telegram-bot
for providing the foundation that made PyBotRex possible.
- Author: TraxDinosaur
- Website: TraxDinosaur.github.io
- GitHub: TraxDinosaur
Happy Bot Building with PyBotRex! 🦖🤖