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 version and refactor main.go #8

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

kkdai
Copy link
Owner

@kkdai kkdai commented Jan 3, 2024

  • Upgrade github.com/line/line-bot-sdk-go from version 7.21.0 to version 8.2.0 in go.mod
  • Update imports in main.go to use the new version of line-bot-sdk-go
  • Change the type of bot from *linebot.Client to *messaging_api.MessagingApiAPI in main.go
  • Add a new variable blob of type *messaging_api.MessagingApiBlobAPI in main.go
  • Assign the value of os.Getenv("ChannelAccessToken") to channelToken in main.go
  • Update the bot initialization in callbackHandler function in main.go to use the new version of line-bot-sdk-go
  • Update the blob initialization in callbackHandler function in main.go to use the new version of line-bot-sdk-go
  • Update the implementation of replyText function in main.go to use the new version of line-bot-sdk-go
  • Update the for loop in callbackHandler function in main.go to use the new version of line-bot-sdk-go
  • Update the switch statement in callbackHandler function in main.go to use the new version of line-bot-sdk-go
  • Update the implementation of handling sticker messages in callbackHandler function in main.go to use

- Upgrade `github.com/line/line-bot-sdk-go` from version 7.21.0 to version 8.2.0 in `go.mod`
- Update imports in `main.go` to use the new version of `line-bot-sdk-go`
- Change the type of `bot` from `*linebot.Client` to `*messaging_api.MessagingApiAPI` in `main.go`
- Add a new variable `blob` of type `*messaging_api.MessagingApiBlobAPI` in `main.go`
- Assign the value of `os.Getenv("ChannelAccessToken")` to `channelToken` in `main.go`
- Update the `bot` initialization in `callbackHandler` function in `main.go` to use the new version of `line-bot-sdk-go`
- Update the `blob` initialization in `callbackHandler` function in `main.go` to use the new version of `line-bot-sdk-go`
- Update the implementation of `replyText` function in `main.go` to use the new version of `line-bot-sdk-go`
- Update the `for` loop in `callbackHandler` function in `main.go` to use the new version of `line-bot-sdk-go`
- Update the `switch` statement in `callbackHandler` function in `main.go` to use the new version of `line-bot-sdk-go`
- Update the implementation of handling sticker messages in `callbackHandler` function in `main.go` to use

Signed-off-by: Evan Lin <evan.if.lin@linecorp.com>
@kkdai
Copy link
Owner Author

kkdai commented Jan 3, 2024

Breaking Change makes it as low priority.

@kkdai kkdai merged commit 645b1db into main Jan 5, 2024
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.

None yet

1 participant