Last active
August 30, 2015 13:28
-
-
Save eternnoir/8ddbf3172c1c6ffe0ac8 to your computer and use it in GitHub Desktop.
webhook example.
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
def webhook(): | |
json_str = request.josn | |
json_obj = json.loads(json_str) | |
new_message = types.Message.de_json(json_obj['message']) | |
telebot.process_new_messages([new_messages]) # process_new_messages need message array |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment