An asynchronous framework for Bale Messenger bots
Project description
An async framework for building powerful bots for Bale Messenger.
Features
- Fully Async
- Webhook Support
- Long Polling
- Filters System
- FSM / States
- Models
- Fast & Lightweight
- Easy to Use
Installation
pip install Gyron
Quick Start
from Gyron.bot import BotClient
from Gyron.models import Update
import asyncio
app = BotClient('TOKEN')
@app.on_update()
async def echo(update:Update):
await app.reply(update.text)
asyncio.run(app.run())
Filters
from Gyron.filters import filters
@bot.on_update(filters.text('/start'))
async def text_handler(update):
print(update.text)
Webhook
bot = BotClient("TOKEN", use_webhook = True)
asyncio.run(bot.run(path = "/webhk"
host="0.0.0.0",
port=8000))
Links
License
MIT License
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
gyron-0.4.1.tar.gz
(15.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gyron-0.4.1-py3-none-any.whl
(15.1 kB
view details)
File details
Details for the file gyron-0.4.1.tar.gz.
File metadata
- Download URL: gyron-0.4.1.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49d72f75dad760b68bf724b9d6e92b7b6f6831416810e3dba70ff13b8e3a3e49
|
|
| MD5 |
88b353814ecd377fe3bbe65c3b3f40d4
|
|
| BLAKE2b-256 |
8ca93e96dd4e7ca9a05bed92ae9eecc3fb3b94ab2a8387e524b610ae72feaa21
|
File details
Details for the file gyron-0.4.1-py3-none-any.whl.
File metadata
- Download URL: gyron-0.4.1-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80709401f67e73742c5576cd54037e02598d28939686987a8e13b77cf35041b0
|
|
| MD5 |
a926dee0bbe82bff9a4722f29b3b11ec
|
|
| BLAKE2b-256 |
4236bb8c53ad4fbbf4310170681c89b79ccabe8c260ef98968276d2d3d7821b5
|