Gappy
Gap Service API
Python framework forInstall
PyPI
pip3 install gappy
Git
git clone https://github.com/GapAPy/Gappy/
cd Gappy
python3 setup.py install
Usage
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()
Authors
- Sadegh Yazdani Github Silverstar10@gmail.com
- HsiN75 Github hsin0475@gmail.com
- Mostafa Asadi Github mostafaasadi73@gmail.com