botco-0.1.3
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | botco-0.1.3 |
| نام | botco |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Suhrob |
| ایمیل نویسنده | oopanndaa@gmail.com |
| آدرس صفحه اصلی | https://github.com/malikovss/botc |
| آدرس اینترنتی | https://pypi.org/project/botco/ |
| مجوز | - |
### `botco` - Telegram bot api wrapper (WIP)
### Installation
```
pip install botco
```
### Quick start
```python
from botco import Bot, Dispatcher, types
from botco.contrib.fsm import FSM
bot = Bot("token_here")
dp = Dispatcher()
@dp.message(commands="start")
def start_message(message: types.Message, bot: Bot, state: FSM):
message.answer("Hello world!")
@dp.message()
def echo(message: types.Message):
message.reply(message.text)
dp.start_polling(bot)
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.26.0,<3.0.0 | requests |
| >=3.5.3,<4.0.0 | redis |
| >=1.8.2,<2.0.0 | pydantic |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.1,<4.0 | Python |
نحوه نصب
نصب پکیج whl botco-0.1.3:
pip install botco-0.1.3.whl
نصب پکیج tar.gz botco-0.1.3:
pip install botco-0.1.3.tar.gz