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
Built Distribution
File details
Details for the file messenger-api-0.5.1.tar.gz
.
File metadata
- Download URL: messenger-api-0.5.1.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80a46fa6d451b75a7b85bd2d04f08dee5a53ee06e6edf4a108565be44f522442 |
|
MD5 | f46a7353e5ad7e27e31a2f7b39791266 |
|
BLAKE2b-256 | 33a6662fb7496dd3e6288780cb7a86fd6d8dbfab6ccd750a6c9cfa14cbce08cc |
File details
Details for the file messenger_api-0.5.1-py2.py3-none-any.whl
.
File metadata
- Download URL: messenger_api-0.5.1-py2.py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce87c7c50a7320c42157b72887e4c12330f777c6ebe1a1f06a1c8c6fd1544039 |
|
MD5 | d2696d2cb5059e79c98c1a0354375cff |
|
BLAKE2b-256 | 59acf019d4f40fcf60507783129ba62bf96affa457ffecab5caf814be88c2508 |