curtely-0.0.2
توضیحات
a 🧑💻Telegram API🧑💻 wrapper
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | curtely-0.0.2 |
| نام | curtely |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | VOID |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/CURVoid/curtely |
| آدرس اینترنتی | https://pypi.org/project/curtely/ |
| مجوز | APACHE 2.0 |
## Curtely v0.0.2 Telegram API wrapper
## Change log
- Added `message_handler` decoretor and renamed `handle_updates` to `run`
## Usage
```python
# Here is an example of an easy echo bot
import curtely
TOKEN = "your-token-here"
bot = curtely.TelegramAPI(TOKEN)
@curtely.message_handler(bot)
def message_handler(api: curtely.TelegramAPI, message: curtely.Message):
api.send_message(message.reply(message.content()))
bot.run()
```
نحوه نصب
نصب پکیج whl curtely-0.0.2:
pip install curtely-0.0.2.whl
نصب پکیج tar.gz curtely-0.0.2:
pip install curtely-0.0.2.tar.gz