Metadata-Version: 2.4
Name: aiober
Version: 0.0.2
Summary: The AioBer library AsyncIO viBER (Aiober) is a python library for creating Viber bots easily, professionally and in a structured way!
Author: Gucul
License: MIT
Project-URL: Homepage, https://github.com/QuaronSoftware/aiober
Project-URL: Issues, https://github.com/QuaronSoftware/aiober/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: redis==7.1.1
Requires-Dist: pydantic==2.12.5
Requires-Dist: aiohttp==3.13.3
Requires-Dist: certifi==2026.1.4
Dynamic: license-file

# Аiober

**A**sync**IO**
      vi**BER** – Python library for easy creation of Viber bots
*Currently, Viber bots can only be works using webhooks.*


### Introduction
...

## Let's get started !

### Installing
Creating a viber bot is easy !
1. Install the library with `pip install aiober`
2. From aiober import Bot and Dispatcher to your projects
3. Build a simple script like in **Example**
4. Make viber bot [here](https://partners.viber.com/account/create-bot-account)
5. Using ngrok make your address global (for webhooks)
6. Run your script
7. Open Postman and make post request to https://chatapi.viber.com/pa/set_webhook with data `{"url":"https://your-domain/update, "auth_token": "auth-token"}` for set webhook to viber bot
**Good, webhook is registred !**

## Example

### Simple echo bot
```python
import asyncio

from aiober import Bot, Dispatcher
from aiober.types import Message

bot = Bot('auth-token')
dp = Dispatcher(bot=bot)

# router
@dp.messages()
async def echo(message: Message):
    await message.copy_to(message.sender.id)


async def main():

    # start webhook
    await dp.start_webhook(
        host='127.0.0.1',
        port=8000,
        path='/update'
    )

asyncio.run(main())
```
