Slide 9
Slide 9 text
Line Bot
バックエンド側からのメッセージ送信も、APIを使って
簡単に実装可能。
from linebot import LineBotApi
from linebot.models import TextSendMessage
from linebot.exceptions import LineBotApiError
line_bot_api = LineBotApi('')
try:
line_bot_api.push_message('', TextSendMessage(text='Hello World!'))
except LineBotApiError as e:
# error handle
…
※channel access token, Line User IDはLine Developperコンソールから発行可能
python