enginebai / pymessager Goto Github PK
View Code? Open in Web Editor NEWPython API to develop chatbot on Facebook Messenger Platform
Home Page: https://enginebai.com/2016/05/16/python-facebook-bot/
License: MIT License
Python API to develop chatbot on Facebook Messenger Platform
Home Page: https://enginebai.com/2016/05/16/python-facebook-bot/
License: MIT License
subscribe_to_page()
uses API v2.9 but the other calls use v2.6?
See: #4 (comment)
As a library, it is expected from users to configure logging from the library using logging
module or something similar.
But, as it is using print
function, it's difficult to remove this sometimes unwanted logging without copying the code or forking the code, thus defeating the purpose of having a library.
Would it be possible to do this change?
Thank you!
Can you please tell what api url is made of. As it says in you code its API_root and FB_webhook but I can't understand which one means what and hence I can't setup the bot.
I have modify the receive message part, so it can send message after message is received:
def fb_receive_message():
message_entries = json.loads(request.data.decode('utf8'))['entry']
for entry in message_entries:
for message in entry['messaging']:
if message.get('message'):
print("{sender[id]} says {message[text]}".format(**message))
client = Messager("Access code of page")
recipient_id = message['recipient']['id']
client.send_text(recipient_id, "Hello, I'm enginebai.")
return "Hi"
The access token is generated according to the tutorial image: https://cdn-images-1.medium.com/max/1600/1*op5S9F_-vsBv7FLrd4mv1g.png
In message.py line 219 req show http 400 error
Is that a typo in your name or was it intentional?
PyMessager
vs
PyMessenger
Is there any example of sending webviews as GUI?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.