As a backend project, line/line-bot-sdk-go has picked up 955 stars on GitHub (Go). LINE Messaging API SDK for Go
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Every client application allows configuration with WithHTTPClient and WithEndpoint.
(For Blob client, configurations WithBlobHTTPClient and WithBlobEndpoint are also available.)
The LINE Messaging API primarily utilizes the JSON data format. To parse the incoming HTTP requests, the webhook.ParseRequest() method is provided. This method reads the *http.Request content and returns a slice of pointers to Event Objects.
import (
"github.com/line/line-bot-sdk-go/v8/linebot/webhook"
)
cb, err := webhook.ParseRequest(os.Getenv("LINE_CHANNEL_SECRET"), req)
if err != nil {
// Handle any errors that occur.
}
The LINE Messaging API is capable of handling various event types. The Messaging API SDK automatically unmarshals these events into respective classes like webhook.MessageEvent, webhook.FollowEvent, and so on. You can easily check the type of the event and respond accordingly using a switch statement as shown below:
for _, event := range cb.Events {
switch e := event.(type) {
case webhook.MessageEvent:
// Do Something...
case webhook.StickerMessageContent:
// Do Something...
}
}
We provide code examples.
EchoBot
a simple echo bot
KitchenSink
a bot that handles many types of events
EchoBotHandler
A simple bot that automatically verifies signatures and only handles Webhook events
DeliveryHelper
InsightHelper
RichmenuHelper
Receiver
To send a message to a user, group, or room, you need either an ID
You may need to store the x-line-request-id header obtained as a response from several APIs. In this case, please use ~WithHttpInfo. You can get headers and status codes. The x-line-accepted-request-id or content-type header can also be obtained in the same way.
However, if a feature that was publicly released is discontinued for business reasons and becomes completely unusable, we will release changes as a patch release.
Contributing
Please check CONTRIBUTING before making a contribution.
License
Copyright (C) 2016 LINE Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
How active is development on line/line-bot-sdk-go?
The most recent commit recorded on line/line-bot-sdk-go was 13 days ago, based on the GitHub push timestamp. The repository has 240 forks — one of the better signals of community interest.
How many stars does line/line-bot-sdk-go have?
line/line-bot-sdk-go has 955 GitHub stars — refresh the page for the live number, or check github.com/line/line-bot-sdk-go. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is line/line-bot-sdk-go open source?
Yes — line/line-bot-sdk-go ships under the Apache-2.0 license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/line/line-bot-sdk-go.
What else is in the Backend space?
line/line-bot-sdk-go is tracked by TopGit under the Backend category, alongside 6 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What topics is line/line-bot-sdk-go associated with?
GitHub's repository topics for line/line-bot-sdk-go: "bot", "go", "golang", "line", "linebot", "sdk". TopGit's editorial category is Backend.
Where can I see line/line-bot-sdk-go in action?
The project maintains a homepage at https://developers.line.biz/en/docs/messaging-api/overview/. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about line/line-bot-sdk-go?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/line/line-bot-sdk-go is the definitive source.
Read full README in the tab above.
Is line-bot-sdk-go worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of line-bot-sdk-go.