### Install Package
```
pip3 install gappy
```
compatible python version: 3.4+
### How to use
#### Run with flask
Example:
```
import gappy
from flask import Flask
from flask import request
TOKEN = '<your token>'
bot = gappy.Bot(TOKEN)
app = Flask(__name__)
@app.route('/', methods=['POST'])
def parse_request():
msg = request.form
content_type = msg['type']
chat_id = msg['chat_id']
data = msg['data']
bot.send_text(chat_id, data)
return 'OK'
if __name__ == '__main__':
app.run()
```
```
pip3 install gappy
```
compatible python version: 3.4+
### How to use
#### Run with flask
Example:
```
import gappy
from flask import Flask
from flask import request
TOKEN = '<your token>'
bot = gappy.Bot(TOKEN)
app = Flask(__name__)
@app.route('/', methods=['POST'])
def parse_request():
msg = request.form
content_type = msg['type']
chat_id = msg['chat_id']
data = msg['data']
bot.send_text(chat_id, data)
return 'OK'
if __name__ == '__main__':
app.run()
```
Metadata
Release files for gappy 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gappy-0.4.3.tar.gz | 6.4 kB | Details |
Release files / gappy-0.4.3.tar.gz
| Download URL | gappy-0.4.3.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e97fa5d4055b9a7a0398c7d97a55ed0cc6c6913b3b778f6a2f626d77c7e0884
|
|
BLAKE2b-256 checksum How to use checksums |
9def3974fb4333c4f88ddc7a085190dfbd7f63560fa208354128cb6b5e334248
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |