10. What is Go(lang)
• Create by Google
• Design by
• Ken Thompson
• Rob Pike
• Robert Griesemer,
• Feature:
• Compiled
• Statically Typed
• Garbage Collection
45. How to prepare HTTPS
server?
• Prepare a machine with
public IP
• Install related OS and
runtime for your
programming language
• Purchase CA signed for
SSL Key ($$)
• Run a HTTPS Webserver
(Apache or Go native
Web Server)
47. Heroku
(Platform As A Service)
• Free-tier:
• USES AN ACCOUNT-
BASED POOL
• OF FREE DYNO HOURS
• SLEEPS AFTER 30 MINS OF
INACTIVITY
• CUSTOM DOMAINS
• HTTPS connection (for
non-custom domains)
• Support one click deploy
50. Step 1: Request Line Bot Trial Account
Apply Line Bot trial account here
(Only 1 per Line Account)
51. Step 2: Deploy to Heroku by
one click
Link : https://github.com/kkdai/LineBotTemplate
52. Step 2: Deploy to Heroku by
one click
Remember this address
53. Step 3. Fill your Heroku App
Callback address to Line Bot
• Copy your app
address from
Heroku to Line
Dashboard.
• It will be something
like “https://
xxxxxx.herokuapp.
com:443/callback”
Fill your app dress here
54. Step 4. Get related Line Bot
info for Heroku App setting
• Need copy
following
variable:
• Channel ID
• Channel Secret
• MID
Need copy those three
55. Step 5. Fill your Line Bot
Information to Heroku Variables
• In Heroku [Dashboard] ->
[Settings]-> [Config
Variables]
• Create following variables:
• ChannelID
• ChannelSecret
• MID
• Fill with you just got from
Line Bot Dashboard.
56. Send a Image to user
Parse bot request to received result
57. Send a Image to user
Make sure it is text message not operation
58. Send a Image to user
Send image to who text to the bot