Giter Site home page Giter Site logo

enginebai / pymessager Goto Github PK

View Code? Open in Web Editor NEW
606.0 606.0 120.0 2.93 MB

Python API to develop chatbot on Facebook Messenger Platform

Home Page: https://enginebai.com/2016/05/16/python-facebook-bot/

License: MIT License

Python 100.00%
api bot chatbot facebook flask messenger python sdk

pymessager's Introduction

Hi there

Hi, I'm Engine Bai. Developer, Athlete, Learner.

abhisheknaiidu

Languages and Tools:

  • With 5 years' experiences of Android app development. Interested in mobile full stack.
  • Start developing in Flutter and learn Frontend / Backend.
  • Read more about Investment, Finance Independence, Learning How to Learn and Leadership & Management.
  • Write Personal Technical Blog to share my knowledge.
object EngineBai {
    val learning: Learning by inject()
    val projects: Project by inject()

    private val experiences = Experience()

    fun startMyJourney() {
        while (live) {
            try {
                learning.keep(efforts, time)
                assets += investment(money)
            } catch (e: Exception) {
                correctMyself(e)
            }

            // TODO:
            travel(listOf(countries))
        }
    }
}

pymessager's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pymessager's Issues

name?

Is that a typo in your name or was it intentional?

PyMessager
vs
PyMessenger

Webviews GUI

Is there any example of sending webviews as GUI?

how to find api url

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.

_send should use logging and not print

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!

Bot cant send message

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.