Line chatbot framework.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
line-web-0.1.1.tar.gz
(12.1 kB
view details)
File details
Details for the file line-web-0.1.1.tar.gz.
File metadata
- Download URL: line-web-0.1.1.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07df3e9003f6e4a2afef732b9295bcdcc57f5a628a7c606b048baa5e6b830554
|
|
| MD5 |
839560c1412373962f9514109d35de6a
|
|
| BLAKE2b-256 |
fecf31a6cf4284e1aee4b85a377a756163e441a5d28e1a9ed1b1d513f9bc3f8d
|