botify-telegram-0.0.1
توضیحات
Modern solution for telegram bots development
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | botify-telegram-0.0.1 |
| نام | botify-telegram |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Dmitriy Paulov |
| ایمیل نویسنده | dmitriy.paulov@gmail.com |
| آدرس صفحه اصلی | https://github.com/dmitriypaulov/botify |
| آدرس اینترنتی | https://pypi.org/project/botify-telegram/ |
| مجوز | - |
# Botify
### Getting started
Install library via pip (Unavailable yet)
```sh
pip install botify
```
Create config folder in your project root directory
with .yaml file (name doesn't matter)
```yaml
name: botify # Whatever you want, but don't use '.' character.
token: <YOUR-BOT-API-TOKEN-HERE>
db_uri: sqlite:///data.db
```
And then use it like this:
```python
from botify import botify
@botify.start()
async def start_handler(message):
await botify.send(
message.from_user.id, "Hello, {{ user.firstname }}. {% if user.id == 1 %}You are first!{% endif %}",
buttons = [("Github", "#https://github.com/dmitriypaulov/botify")]
)
botify.run()
```
See more in [docs](docs/root.md)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl botify-telegram-0.0.1:
pip install botify-telegram-0.0.1.whl
نصب پکیج tar.gz botify-telegram-0.0.1:
pip install botify-telegram-0.0.1.tar.gz