Unofficial Facebook Messenger library for Python 2.6+ / Python 3.4+ / pypy
Project description
Installation
Just use pip, as you would with all packages
$ pip install messenger-api
Documentation
There’s no docs, I’m sorry. Some day I’ll do it.
Examples
Simple example of sending message to thread
>>> from messenger_api import Messenger
>>> msg = Messenger('login', 'password')
>>> thread = msg.get_thread(485734986798)
>>> thread
<messenger_api.Thread.GroupThread: "Random chat name" (485734986798)>
>>> thread.send_message("TEST MESSAGE!")
<messenger_api.Message.Message object at 0x000000262414AFD0>
Message sent! :)
Soon you will be able to find some examples in examples directory
Contribute
I will appriciate pull requests, but if you want to help you even can just let me know that it stopped working.. I’m not using this library at everyday use and I don’t have time to check if Facebook made any changes that breaks compatibility.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
messenger-api-0.5.1.tar.gz
(16.5 kB
view hashes)
Built Distribution
Close
Hashes for messenger_api-0.5.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce87c7c50a7320c42157b72887e4c12330f777c6ebe1a1f06a1c8c6fd1544039 |
|
MD5 | d2696d2cb5059e79c98c1a0354375cff |
|
BLAKE2b-256 | 59acf019d4f40fcf60507783129ba62bf96affa457ffecab5caf814be88c2508 |