Metadata-Version: 2.4
Name: osonbot
Version: 1.0.1
Summary: A simple and lightweight Telegram bot framework
Home-page: https://github.com/sinofarmonov323/osonbot
Author: https://t.me/jackson_rodger
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires: httpx
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: httpx
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# osonbot

A simple Telegram bot framework.

Example echo bot
```python
from osonbot import Bot

bot = Bot("YOUR_BOT_TOKEN")

bot.when("/start", "Hello {first_name}!") # * handles eveymessage if it is a text
bot.when("*", "{message_text}")

bot.run()
```

# Installation
```
git clone https://github.com/sinofarmonov323/osonbot.git
```
```
pip install .
```

sending photo, video, audio, voice
```python
from osonbot import Bot, Photo, Video, Audio, Voice

bot.when("photo", Photo(photo_url_or_path, caption="this is a image of a cat"))
bot.when("video", Video(photo_url_or_path, caption="video of the a cat"))
bot.when("audio", ...) # same here
bot.when("voice", ...) # same but doesn't support url

bot.run()
```

sending buttons
```python
from osonbot import Bot, KeyboardButton

row1 = ["Button 1", "Button 2"]
row2 = ["Button 3", "Button 3"]

bot.when("/start", "Salom {first_name}", reply_markup=KeyboardButton(row1, row2))
```
by default, resize_keyboard is True and one_time_keyborad is False. You can change it if you want 
