How messenger bot work
-
Upload
christoforus-surjoputro -
Category
Software
-
view
90 -
download
0
Transcript of How messenger bot work
Christoforus Surjoputro - Academic surabaya.pyGithub : 3mp3ri0rwww.facebook.com/totoganteng
surabaya.pyGithub : surabaya-py
http://surabaya.python.or.id/registerhttps://t.me/surabayadotpy
how bot messenger work
overview
your appsGET
POST
facebook graph api
POST???
webhook
= webhookprovider
webhook is a way for an app to provide other application with real-time information.
https://sendgrid.com/blog/whats-webhook/
verify your apps
your appsGET
query string:hub.mode=subscribe&hub.challenge=686231577&hub.verify_token=verifikasi-python-id-bot'
POST message format
your appsPOST
receiving text message
your appsPOST
receiving message with attachment
your appsPOST
sending text message
your apps
facebook graph api
POST
Link: https://graph.facebook.com/v2.6/me/messages?access_token=your_page_token
sending text message
your apps
facebook graph api
POST
Link: https://graph.facebook.com/v2.6/me/messages?access_token=your_page_token
sending attachment message
your apps
facebook graph api
POST
sending attachment message
Content-Type: multipart/form-data; boundary=---boundary_data
Link: https://graph.facebook.com/v2.6/me/messages?access_token=your_page_token
your apps
facebook graph api
POST
Find more on: https://developers.facebook.com/docs/messenger-platform
“I can accept failure, everyone fails at something.But I can't accept not trying.”
-- Michael Jordan --
Thank you