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 [email protected]
- HsiN75 Github [email protected]
- Mostafa Asadi Github [email protected]