Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update line-bot-sdk-go to version 8.2.0 and replace linebot wi… #28

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

kkdai
Copy link
Owner

@kkdai kkdai commented Dec 28, 2023

…th webhook in main.go

  • Update the required version of github.com/line/line-bot-sdk-go from v7.21.0 to v8.2.0 in go.mod
  • Update the import statements in main.go to use github.com/line/line-bot-sdk-go/v8/linebot and github.com/line/line-bot-sdk-go/v8/linebot/webhook
  • Replace bot.ParseRequest with webhook.ParseRequest in the callbackHandler function
  • Replace the switch cases for linebot.TextMessage and linebot.StickerMessage with the corresponding cases for webhook.TextMessageContent and webhook.StickerMessageContent in the callbackHandler function
  • Add cases for webhook.MessageEvent, webhook.FollowEvent, webhook.PostbackEvent, and webhook.BeaconEvent in the callbackHandler function

…th webhook in main.go

- Update the required version of `github.com/line/line-bot-sdk-go` from v7.21.0 to v8.2.0 in go.mod
- Update the import statements in main.go to use `github.com/line/line-bot-sdk-go/v8/linebot` and `github.com/line/line-bot-sdk-go/v8/linebot/webhook`
- Replace `bot.ParseRequest` with `webhook.ParseRequest` in the callbackHandler function
- Replace the switch cases for `linebot.TextMessage` and `linebot.StickerMessage` with the corresponding cases for `webhook.TextMessageContent` and `webhook.StickerMessageContent` in the callbackHandler function
- Add cases for `webhook.MessageEvent`, `webhook.FollowEvent`, `webhook.PostbackEvent`, and `webhook.BeaconEvent` in the callbackHandler function

Signed-off-by: Evan Lin <evan.if.lin@linecorp.com>
@kkdai kkdai merged commit c582448 into master Dec 28, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant