--- id: line-bot-sdk version: "3.25.0" license: Apache License 2.0 license_treatment: permissive maintenance: active --- # line-bot-sdk — LINE Messaging API SDK for Python License: permissive · Maintenance: active · Downloads: 11.3M/mo ## What it is and what it does line-bot-sdk is the official Python client library for LINE's Messaging API, designed to simplify bot development on the LINE platform. It provides webhook parsing and event handling, message sending, and access to LINE's messaging features. The SDK abstracts away HTTP details and signature verification, letting developers focus on bot logic. The package is built on requests, urllib3, aiohttp, pydantic, and other dependencies, supporting both synchronous and asynchronous workflows. It is actively maintained and supports Python 3.10 through 3.14. Developers typically use it to receive webhook events from LINE, parse them into typed event objects, and reply with formatted messages via the MessagingApi client. Use it for: - Build a LINE chatbot that echoes or processes user messages in real time. - Create a customer support bot that routes inquiries to different handlers based on message type. - Send rich, templated messages to LINE users from a backend service. - Parse and respond to LINE follow/unfollow and postback events for interactive bot flows. - Integrate LINE messaging into a web application with webhook callbacks. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. SDK for building LINE bots that handles webhook parsing, event routing, and message sending through LINE's Messaging API. Yes. The SDK is production-stable (Apache 2.0, active maintenance, no known vulnerabilities), has low install friction, and is the canonical way to build LINE bots in Python. Install it if you are building any LINE bot or integrating LINE messaging into a Python application. ## Install pip install line-bot-sdk uv add line-bot-sdk poetry add line-bot-sdk ## Installing line-bot-sdk Before you install: Low install friction with a pure-Python wheel distribution. Actively maintained with recent releases (last commit 2026-08-14, 2129 stars). Supports Python 3.10–3.14 with 8 runtime dependencies including requests, urllib3, aiohttp, and pydantic. License in practice: Apache License 2.0 (permissive) allows commercial and private use, modification, and distribution with minimal restrictions—suitable for production bot projects. Quickstart: pip install line-bot-sdk from line_bot_sdk.v3 import WebhookHandler from line_bot_sdk.v3.messaging import Configuration, ApiClient, MessagingApi, ReplyMessageRequest, TextMessage handler = WebhookHandler('YOUR_CHANNEL_SECRET') configuration = Configuration(access_token='YOUR_CHANNEL_ACCESS_TOKEN') @handler.add(MessageEvent, message=TextMessageContent) def handle_message(event): with ApiClient(configuration) as api_client: line_bot_api = MessagingApi(api_client) line_bot_api.reply_message_with_http_info( ReplyMessageRequest( reply_token=event.reply_token, messages=[TextMessage(text=event.message.text)] ) ) Requires Python >= 3.10.0 and valid LINE channel credentials (access token and channel secret). Verify before relying: - Whether the SDK handles rate limiting or retry logic automatically for API calls. - Specifics on async support beyond aiohttp dependency (e.g., async/await patterns in handlers). - Whether FlexMessage and RichMenu JSON deserialization covers all message types or has known gaps. - Full scope of message types and features supported by the MessagingApi client. ## Package facts - License: Apache License 2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 11.3M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags LINE bot development, LINE messaging API, webhook handler for LINE, LINE chatbot SDK, LINE message sending, LINE event parsing, LINE bot framework, line-messaging, chatbot, webhook-handler [View on SkillFed](https://skillfed.io/packages/line-bot-sdk) · [View on PyPI](https://pypi.org/project/line-bot-sdk/)