About line-bot-sdk[https://github.com/line/line-bot-sdk-python]
- Webhook Event Objects
MessageEvent(訊息)
|
FollowEvent(加入, 解除封鎖)
|
UnfollowEvent(封鎖)
|
About line messageing-api[https://github.com/line/line-bot-sdk-python]
- types of messages:
- text (used)
- sticker (used)
- image (used)
- video
- audio
- location (used)
- imagemap (<3)
- template (<3)
- flex (excellent)
- app.py : main program
- line_bot_api.py : related modules
- use Dockerfile build env image
docker build -t rakunabe .
- create project file
mkdir app.py
- use line-bot-sdk supply code to build basic flask server
- run your project in the container
docker run --name rakunabe -p 5002:5002 --restart=always -v /root/Fully-automatic-LINE-commercial-robot:/app -d rakunabe
- check container normal executed or not
docker container ps | grep rakunabe
docker logs rakunabe