-
-
Save mosessoh/5166220fe655c38a38307d436838eaf0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.route("/{}".format(bot_token), methods=["POST"]) | |
def process_update(): | |
if request.method == "POST": | |
update = request.get_json() | |
if "message" in update: | |
process_message(update) | |
return "ok!", 200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment