Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
StyledBots 🚀
Modern, clean & powerful Telegram Bot library
Better than / equal to Telebot • Perfect for Pydroid 3
Installation
For everyone (including Pydroid 3):
pip install styledbots
That's it!
Quick Start
from styledbots import Bot, Style, InlineKeyboard
bot = Bot("YOUR_BOT_TOKEN")
@bot.command("start")
def start(message):
kb = InlineKeyboard()
kb.button("Click me", "btn1")
kb.button("Google", url="https://google.com")
text = f"Hello {Style.bold(message.from_user.first_name)}!"
bot.reply_to(message, text, reply_markup=kb)
@bot.callback_query_handler(func=lambda c: c.data == "btn1")
def button_handler(call):
call.answer("You clicked!", show_alert=True)
bot.infinity_polling()
Features
- Simple & clean API (Telebot-compatible)
- Beautiful Style helpers (bold, italic, spoiler, code, etc.)
- Fluent Inline & Reply Keyboards
- Powerful filters system
- Middleware support
- Simple storage (Memory + File)
- Lightweight (only
requests) - Fully synchronous → works great on Android / Pydroid 3
- Type hints & clean structure
Style Helpers
from styledbots import Style
Style.bold("text")
Style.italic("text")
Style.underline("text")
Style.strike("text")
Style.code("code")
Style.pre("code block", "python")
Style.spoiler("hidden")
Style.link("Click", "https://...")
Style.mention(user_id, "Name")
Keyboards
from styledbots import InlineKeyboard, ReplyKeyboard
# Inline
kb = InlineKeyboard()
kb.button("Yes", "yes").button("No", "no")
kb.row()
kb.button("Cancel", "cancel")
# Reply
rkb = ReplyKeyboard()
rkb.row("Option 1", "Option 2")
rkb.row("Back")
Why StyledBots?
| Feature | Telebot | StyledBots |
|---|---|---|
| Ease of use | Excellent | Excellent |
| Styling helpers | No | Yes |
| Fluent keyboards | Manual | Yes |
| Middleware | Limited | Yes |
| Storage helpers | No | Yes |
| Pydroid 3 ready | Yes | Yes |
| Clean structure | Medium | Excellent |
Links
- PyPI: https://pypi.org/project/styledbots/
- Source: https://github.com/styledbots/styledbots (create your repo)
Made with ❤️ for Pydroid 3 users and Telegram bot developers.
Metadata
Release files for styledbots 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| styledbots-1.0.0.tar.gz | 16.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| styledbots-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.0 kB
Release files / styledbots-1.0.0.tar.gz
| Download URL | styledbots-1.0.0.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c723a71cd7cb94db9bff6df4e1077f034d02129095bcc9afbad4a5e5c51e692
|
|
BLAKE2b-256 checksum How to use checksums |
60db839bfda749003ef2937684524ab4a4580dff00afa2258e99eed4275650ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / styledbots-1.0.0-py3-none-any.whl
| Download URL | styledbots-1.0.0-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa14ae2dde27b5c93dfbf1ced350c428b02654d5f5e82da7f031bee1fbba3891
|
|
BLAKE2b-256 checksum How to use checksums |
c41ed66ed1831e7339a2705b600d1226d98b1f579f7ea7f724fa9b874b217db1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|