Skip to main content

Asynchronous feature-rich framework for building Telegram bots

Project description

Wonda 🫧

Version Package downloads Supported Python versions

Wonda is a Telegram bot framework. It supports latest versions and features of the API. Incredibly fast and extraordinarily customizable, it gives you power to build the bot you always wanted.

Features

Ever wanted to build a bot? You can do that 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 already format text, upload files, and make use of an advanced state system to craft complex interactions. And more features are expected to come! Check out the examples.

Customization

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.

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.

Contrubuting

The framework is not yet ready for production. If you like what you see, help us develop this amazing project! Create an issue or make a pull request.

Copyright

(c) timoniq (2019-2021), feeeek (2022-2023), geo-madness (2022-2023)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wonda-0.6.0a4.tar.gz (47.3 kB view details)

Uploaded Source

Built Distribution

wonda-0.6.0a4-py3-none-any.whl (66.2 kB view details)

Uploaded Python 3

File details

Details for the file wonda-0.6.0a4.tar.gz.

File metadata

  • Download URL: wonda-0.6.0a4.tar.gz
  • Upload date:
  • Size: 47.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Darwin/22.2.0

File hashes

Hashes for wonda-0.6.0a4.tar.gz
Algorithm Hash digest
SHA256 e2a29891e670f5d41c2fa9eadb012dba8b7201aae416c6806b7f83a9dc6b4317
MD5 ca1de4318285a456251cddd71755c35b
BLAKE2b-256 95d98face496f8d73eece706d6909f05380ad68e065ee784886a9c423c0197a2

See more details on using hashes here.

Provenance

File details

Details for the file wonda-0.6.0a4-py3-none-any.whl.

File metadata

  • Download URL: wonda-0.6.0a4-py3-none-any.whl
  • Upload date:
  • Size: 66.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Darwin/22.2.0

File hashes

Hashes for wonda-0.6.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 13994276886cc9a0c9a1dca65cf565411b44c2c3a546869773f03c9d859f4027
MD5 801544bfea461a6b2be3ae2d8b4f8c15
BLAKE2b-256 a9db653873f49941cc5a3c8cbb5350d30d17644f2350ea2639f91b30998bf001

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page