跳到正文
TakoAPI
返回技能列表

line-client

由 2manslkh 提供

Web & Frontend Development
336下载量由 clawskills.sh 提供
3星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

LINE messaging integration via Chrome extension gateway.

描述

该技能的功能

Python client for the LINE messaging platform via LINE's Chrome extension JSON gateway. Supports sending and receiving messages, managing contacts and groups, handling reactions, and updating profiles. Authentication requires scanning a QR code in the LINE mobile app, with tokens valid for approximately 7 days.

LINE has no official API for personal accounts, and this library provides one of the few ways to automate personal LINE interactions without screen scraping.

何时使用

  • Automating LINE message sends from a Python script
  • Polling a LINE group chat for incoming messages
  • Looking up or adding LINE contacts by phone number
  • Marking conversations as read in bulk
  • Reacting to messages with emoji responses programmatically

示例工作流

输入

User asks: Send 'Meeting at 3pm' to a LINE contact with MID U1234abc

智能体
  1. 1

    Load auth token from ~/.line-client/tokens.json

  2. 2

    Initialize LineChromeClient with the auth token

  3. 3

    Call client.send_message('U1234abc', 'Meeting at 3pm')

  4. 4

    Catch APIError(10051) if token is expired and prompt re-authentication via QR login

输出

Message delivered to the specified LINE contact

前置要求

  • lstm.wasm and lstmSandbox.js in repo root
  • LINE mobile app for QR code authentication

安装

clawhub install 2manslkh/line-client

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接