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.0.tar.gz
(15.0 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.0-py3-none-any.whl
(15.0 kB
view details)
File details
Details for the file gyron-0.4.0.tar.gz.
File metadata
- Download URL: gyron-0.4.0.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db97a56a1fc916eb72c94f8cbc3a9c606bdd94037b6e39f009c78b394a5e6de4
|
|
| MD5 |
e37f228dc86e35625b92c5f519f41e89
|
|
| BLAKE2b-256 |
2213e007dfba6d86963baf62e98a7b1106db4f8cc0b29cb429735350baa661db
|
File details
Details for the file gyron-0.4.0-py3-none-any.whl.
File metadata
- Download URL: gyron-0.4.0-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b1b9bd405bd63e104579d8d2a05baea364686cf4791c16febc543ec55396ff4
|
|
| MD5 |
6785fdfc69a60d04cb0dd071244a9fe6
|
|
| BLAKE2b-256 |
078f7543aa9fa6b9083bb9d6a9e26859e7ca61dfc43baac1f984a5365312dae4
|