Skip to main content

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.

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

Project details


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)

Uploaded Source

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

Hashes for line-web-0.1.1.tar.gz
Algorithm Hash digest
SHA256 07df3e9003f6e4a2afef732b9295bcdcc57f5a628a7c606b048baa5e6b830554
MD5 839560c1412373962f9514109d35de6a
BLAKE2b-256 fecf31a6cf4284e1aee4b85a377a756163e441a5d28e1a9ed1b1d513f9bc3f8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page