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