Skip to content
AstrBot
Main Navigation HomeBlogRoadmapHTTP API

English

简体中文

English

简体中文

Toggle dark mode

Intro & DeployMessaging PlatformsAI IntegrationUsageDevelopment
Sidebar Navigation

Introduction

What is AstrBot

Community

FAQ

Deployment

Package Manager

One-click Launcher

Docker

Kubernetes

BT Panel

1Panel

Manual

Other Deployments

CasaOS

Compshare GPU

Community-provided Deployment

Support Us

Messaging Platforms

Quick Start

QQ Official Bot

Webhook Method

Websockets Method

WeCom Application

WeCom AI Bot

WeChat Official Account

Lark

DingTalk

Telegram

LINE

Slack

Misskey

Discord

OneBot v11

NapCat

Lagrange

Other Clients

Satori

Using LLOneBot

Using server-satori

Community-provided

Matrix

KOOK

VoceChat

AI Integration

✨ Model Providers

NewAPI

AIHubMix

PPIO Cloud

SiliconFlow

TokenPony

302.AI

Ollama

LMStudio

⚙️ Agent Runners

Built-in Agent Runner

Dify

Coze

Alibaba Bailian

Usage

WebUI

Plugins

Built-in Commands

Tool Use

Anthropic Skills

SubAgent Orchestration

Proactive Tasks

MCP

Web Search

Knowledge Base

Custom Rules

Agent Runner

Unified Webhook Mode

Auto Context Compression

Agent Sandbox

Development

Plugin Development

🌠 Getting Started

Minimal Example

Listen to Message Events

Send Messages

Plugin Configuration

AI

Storage

HTML to Image

Session Control

Publish Plugin

Platform Adapter Integration

AstrBot HTTP API

AstrBot Configuration File

Others

Self-hosted HTML to Image

Open Source Summer

OSPP 2025

On this page

Connecting to LINE ​

Supported Message Types ​

Version v4.17.0.

Message TypeReceive SupportSend SupportNotes
TextYesYes
ImageYesYes
VoiceYesYes
VideoYesYes
FileYesYes
StickerYesNo

Proactive message push: Supported.

Create a LINE Messaging API Channel ​

  1. Open the LINE Developers Console
  2. Create or select a Provider
  3. Create a Messaging API channel (not a LINE Login channel)
  4. Complete bot initialization on the Messaging API page

Get Credentials ​

You need the following values:

  • channel_secret
  • channel_access_token

How to get them:

  1. Open your channel settings page
  2. Get Channel secret from Basic settings
  3. Issue a Channel access token on the Messaging API page

Configure AstrBot ​

  1. Open the AstrBot admin panel
  2. Click Bots in the left sidebar
  3. Click + Create Bot
  4. Select line

Fill in these fields:

  • ID: Custom identifier to distinguish instances
  • Enable: Checked
  • LINE Channel Access Token: your channel_access_token
  • LINE Channel Secret: your channel_secret
  • LINE Bot User ID: optional; if empty, AstrBot uses webhook destination

Click Save.

Configure Callback URL (Unified Webhook) ​

The LINE adapter supports unified webhook mode only.

After saving, click View Webhook URL on the bot card and copy the URL.

Then in LINE Developers Console:

  1. Open Messaging API
  2. Paste the URL into Webhook settings -> Webhook URL
  3. Click Verify
  4. Enable Use webhook

TIP

If AstrBot is not publicly reachable, set up a public domain and reverse proxy first so LINE can access your webhook URL.

Test ​

  1. Add your Official Account as a friend in LINE
  2. Send a message to the bot (for example, hi)
  3. If the bot replies, setup is successful

If you want to use it in a group, invite the Official Account to the group first.

Edit this page on GitHub

Last updated:

Pager
PreviousTelegram
NextSlack

Deployed on Rainyun Logo