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.2.0.tar.gz (13.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.2.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gyron-0.2.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for gyron-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d0bb7015983c56adcf9eb763e07bd9d33e46519f5a5e762434b4b2b268cc9d0b
MD5 01a8a0b77e7d45b7e71dd4824d7bb78f
BLAKE2b-256 9a73e97e890c09f61dba9f019eff847448186bff0d6da0094f6dd61d2f722cbe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gyron-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for gyron-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f26459964cb68ad6acb1d13f2f6f8dea963a8e9aff654678af4ff89d760584a6
MD5 01ed871f656e979e0fde0ba2c271681f
BLAKE2b-256 da0f7188077ad9ebef20bb04c72f3d90e0a3913be00880b311ef75babbe1ec97

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