Skip to content

jefri1375/Gappy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gappy

Python framework for Gap Service API

Travis GitHub last commit GitHub contributors PyPI PyPI - Python Version license GitHub stars

Install

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()

See also the list of contributors who participated in this project.

Contributing

This is a open-source project. Fork the project, complete the code and send pull request.

License

This project is licensed under the GPL License - see the LICENSE file for details

About

Python framework for Gap Service API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%