Skip to content

Optimal and practical module for building API bots in bale messengers.

License

Notifications You must be signed in to change notification settings

irvaniamirali/balepy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BalePy

background

Balepy a Python Library for create bot API in bale messenger

Install and Update:

pip install -U balepy

Start:

from balepy import Client
from balepy.types import Updates

from asyncio import run

bot_token = "0123456788:****************************************"

app = Client("my_bot", bot_token=bot_token)


@app.on_message
async def updates(update: Updates):
    print(update.text)
    await app.send_message(update.chat_id, update.text, update.message_id)


run(updates())

Contributors

Contributions to the project are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request on GitHub.

License

BalePy is released under the MIT License. See the bundled LICENSE file for details.

About

Optimal and practical module for building API bots in bale messengers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%