line-web
Line chatbot framework.
Usage
$ pip install line-web
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/line-web/LICENSE> for more information.
Metadata
Release files for line-web 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| line-web-0.1.1.tar.gz | 12.1 kB | Details |
Release files / line-web-0.1.1.tar.gz
| Download URL | line-web-0.1.1.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07df3e9003f6e4a2afef732b9295bcdcc57f5a628a7c606b048baa5e6b830554
|
|
BLAKE2b-256 checksum How to use checksums |
fecf31a6cf4284e1aee4b85a377a756163e441a5d28e1a9ed1b1d513f9bc3f8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.9
|