Skip to main content

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


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.2.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gyron-0.4.2-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file gyron-0.4.2.tar.gz.

File metadata

  • Download URL: gyron-0.4.2.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for gyron-0.4.2.tar.gz
Algorithm Hash digest
SHA256 504fc469f3653e9e1852147ad48caee3f2c44c64682f5ccda6b7e26fa4fe9284
MD5 4075f0681dca5e87258ca533f39860d5
BLAKE2b-256 0e0810a0bc53f694ab3eb179fb55ab5979a48f3ee96ffd4cb14d2d6463a1f91a

See more details on using hashes here.

File details

Details for the file gyron-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: gyron-0.4.2-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

Hashes for gyron-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f21541056286100b6ed31227b7e73428924a6ce55b76f43fa0cb005b35ae5043
MD5 7e85c7a984ecee8b0c1dcfba9bbbfb37
BLAKE2b-256 9f0f7dfc48285c33d9e5cdb310f13e741f7264a53bbe588d61fb72a9b788e894

See more details on using hashes here.

Supported by

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