semvec/pypi-packages huggingface dataset:
linebot 0.1.5
Line chatbot framework.
License: MIT
Requires Python: >=3.8.0


linebot
===============================================
Line chatbot framework.

Usage
-----

```bash
$ pip install linebot
```


```python
from line import Line
from line.authentications import BusinessAuthentication

bot = Line(
    authentication=BusinessAuthentication("<username>", "<password>"), # Business Account
    bot="<shop>" # shop name
)


# event
# chat(message, messageSent, read, typing, typingVanished, noteUpdated, markedAsManualChat, unmarkedAsManualChat, chatRead, assigneeUpdated, tagged, ...)
# botUnreadChatCount(increment, ...)
# botInfo(hasChatRoomChanged, ...)
# ...

@bot.handle()
def on_event(bot, event):
    print(bot, event)


@bot.handle("chat", "message")
def on_message(bot, event):
    pass


bot.run()
```


Meta
----


Distributed under the MIT license. See `LICENSE <https://github.com/miloira/linebot/LICENSE>` for more information.

https://github.com/miloira/linebot