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

Update LINE Bot SDK from deprecated to latest v3 #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mcc311
Copy link

@mcc311 mcc311 commented Sep 22, 2023

Description:

This PR addresses the deprecation warnings from the LINE Bot SDK by updating the code to use the latest v3. The changes ensure compatibility with the most recent version of the SDK, improve maintainability, and ensure continued smooth operations.

Key Changes:

  1. Updated the SDK imports to v3 format.
  2. Migrated from deprecated TextMessage class to TextSendMessage and other similar changes for different types of messages.
  3. Refactored audio message handling to be compatible with the v3 SDK.
  4. Removed unnecessary configurations and adjusted for API changes in messaging.
  5. Cleaned up and standardized the error handling messages.

Testing:

  1. Test the bot to ensure that it can still receive and reply to text messages without any issues.
  2. Test the audio transcription feature and verify the bot's response.
  3. Ensure that API token registration and related commands are still working as expected.
  4. Check error handling behavior, especially with regards to OpenAI API token errors.
  5. Verify that the image messaging feature functions properly and displays images as expected.

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