LINE CHAT BOT OFFICIAL
Simple line bot creation using Python.
- Line SDK
$ pip install line-bot-sdk
- Web development micro framework
$ pip install Flask
- Deploy project to Heroku
Go to Line Developer Console, do as follows:
- Fill in Basic Information section
- Issue Channel Access Token (will use it later)
- Use Webhooks set as Enabled
- Webhook URL set as https://{YOUR_HEROKU_SERVER_ID}.herokuapp.com/callback
Go to Heroku dashboard > Settings > Config Variables, add following app's secrets:
LINE_CHANNEL_SECRET='xxx'
LINE_CHANNEL_ACCESS_TOKEN='xxx'