A light, blazing fast framework for developing capable bots.
Project description
Wonda
Wonda is a Telegram bot framework. It's light, blazing fast and feature rich. It also supports latest Bot API versions immediately. Join our Telegram forum
Install
pip install wonda
A stable version of Wonda can be installed using this command. Add --pre
to the command to install a pre-release version.
Features
You can build a basic bot in only 6 lines of code:
from wonda import Bot, Message
bot = Bot("your-token")
@bot.on.message()
async def handler(m: Message) -> None:
await m.answer("Hello world!")
bot.run_forever()
You can also format text, upload files, translate your bot to dozens of languages and make use of an advanced state system to build complex interactions. To learn more, check out the examples.
Customization
Wonda ships with few dependencies by default. To customize your experience, you may want to install some extra dependencies on top.
Speed up event loop
pip install uvloop
Wonda supports uvloop, an event loop implementation which makes I/O 2-4x quicker.
Replace default JSON module
pip install orjson
Swap out the module that is used under the hood to manipulate JSON and increase speed up to 5 times.
Display tracebacks in greater detail
pip install rich
Check out rich, a library which provides amazing rich text capabilities for your logs.
Contrubuting
This framework is a robust solution for what it's worth, but the API may be unstable for a while. That means it's not yet ready for production use.
So, if you like our work, help us develop this amazing project! Here are some ways you can help.
With code
Contributions are welcome! File a ticket if you have something to say about the state of the framework.
With finances
There are a couple options available for monetary help. Click Sponsor to see them. Thank you!
License
This project exists thanks to the amazing work done by timoniq. Code is licensed under MIT.
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
File details
Details for the file wonda-0.7.6.tar.gz
.
File metadata
- Download URL: wonda-0.7.6.tar.gz
- Upload date:
- Size: 86.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/24.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc3ac50347b4a16d3a647b88079355602174e449a63ec71f699afb6257e1b718 |
|
MD5 | 479675ddedef27fdc85b5caa05b04590 |
|
BLAKE2b-256 | c4bfe8f002e465f49f0ec2c23e714eea02c557b6cefcff2f44f53dbf308bbd23 |
File details
Details for the file wonda-0.7.6-py3-none-any.whl
.
File metadata
- Download URL: wonda-0.7.6-py3-none-any.whl
- Upload date:
- Size: 109.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/24.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c34e8600087e252497ac83c942c9f69361be0bd82de4f96a331ebc6187a47429 |
|
MD5 | bef861f994512f571f84b9e60653b158 |
|
BLAKE2b-256 | 0a749c0c378ba48a9ddf584de2f5023eb4b39692d84ebf9bdd06534dc717cce6 |