This is a simple echo bot on LINE bot. (python)
-
Install project dependency
pip install --target . line-bot-sdk
-
Compress this directory
-
Amazon Web Service
- AWS > Search Lambda > Create function
- Settings
- Basic information > Runtime:
Python 3.[x]
- Advanced settings > Enable function URL:
check
- Auth type > NONE:
check
- Auth type > NONE:
- Basic information > Runtime:
- Press Create function
-
Code Source > Upload from > .zip file
- Upload .zip file
- Copy
Function URL
-
-
Create a new channel
-
Tab Messaging API
- Webhook settings > Webhook URL: Update with
Copied Function URL
- Webhook settings > Use webhook:
check
- Copy
Channel access token
- Webhook settings > Webhook URL: Update with
-
Tab Basic Settings
- Copy
Channel secret
- Copy
-
-
Your Lambda Function
- Tab Configuration
- Set environment
YOUR_CHANNEL_ACCESS_TOKEN
andYOUR_CHANNEL_SECRET
- Set environment
- Tab Configuration
Enjoy !!