Skip to main content

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.

https://github.com/miloira/line-web

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)

Source distribution for line-web 0.1.1
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

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page