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.5.0.tar.gz
(15.3 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.5.0-py3-none-any.whl
(15.2 kB
view details)
File details
Details for the file gyron-0.5.0.tar.gz.
File metadata
- Download URL: gyron-0.5.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18f5e5cd92b48e0229273a512abecbee72a7da85be67948719040bdd3cbb95a4
|
|
| MD5 |
2e14253fa4f6dd5e00426002efa38ef7
|
|
| BLAKE2b-256 |
b53544967b64ba4daad16570ddb687cd2d57bd16d8f0c768229fca33610f5823
|
File details
Details for the file gyron-0.5.0-py3-none-any.whl.
File metadata
- Download URL: gyron-0.5.0-py3-none-any.whl
- Upload date:
- Size: 15.2 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 |
dfdb35afa3bac78e8d376f5e2c6f9ea53efd972c5f1515bb7d0ce0312f3adb1b
|
|
| MD5 |
5aac7cc7bc910e9e31a9f55ba305f1d0
|
|
| BLAKE2b-256 |
13336934f722c042a00d98f4709333430f9ecb69f3722b11a1e4d357551cd574
|