Bot class for Facebook Messenger
Project description
# python-messenger
Messenger bot base class for python applications
## Example
```py
from messenger import Bot
class EchoBot(Bot):
def handle_message(self, messaging_event):
self.send_text_message(messaging_event['sender']['id'], messaging_event['message']['text'])
```
## Contributing
### Installation
```bash
virtualenv virtualenv
source virtualenv/bin/activate
pip install -r requirements.txt
```
### Tests
```bash
source virtualenv/bin/activate
pytest messenger
```
Messenger bot base class for python applications
## Example
```py
from messenger import Bot
class EchoBot(Bot):
def handle_message(self, messaging_event):
self.send_text_message(messaging_event['sender']['id'], messaging_event['message']['text'])
```
## Contributing
### Installation
```bash
virtualenv virtualenv
source virtualenv/bin/activate
pip install -r requirements.txt
```
### Tests
```bash
source virtualenv/bin/activate
pytest messenger
```
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
File details
Details for the file python-messenger-0.1.2.tar.gz
.
File metadata
- Download URL: python-messenger-0.1.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d70e6c0ffce1ebf15c56ae57c00d1bbced57a1e1fb238280cd4670a0393a463f |
|
MD5 | 597e56c571abe6a88df13dd133d6fbd9 |
|
BLAKE2b-256 | 06c3cfa6d034fd5d0e42d908d0989cb6426641cade1d8fa2736707558fa5a83f |