Spaces:
Sleeping
Sleeping
williamagyapong
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
from flask import Flask, request, make_response
|
2 |
import os
|
|
|
3 |
import logging
|
4 |
from dotenv import load_dotenv
|
5 |
from heyoo import WhatsApp
|
@@ -209,7 +210,6 @@ def hook():
|
|
209 |
elif message_type == "interactive":
|
210 |
message_response = messenger.get_interactive_response(data)
|
211 |
interactive_type = message_response.get("type")
|
212 |
-
message_body = message_response.get("body")
|
213 |
message_id = message_response[interactive_type]["id"]
|
214 |
message_text = message_response[interactive_type]["title"]
|
215 |
logging.info(f"Interactive Message: {interactive_type} {message_id}: {message_text}")
|
|
|
1 |
from flask import Flask, request, make_response
|
2 |
import os
|
3 |
+
from datetime import datetime
|
4 |
import logging
|
5 |
from dotenv import load_dotenv
|
6 |
from heyoo import WhatsApp
|
|
|
210 |
elif message_type == "interactive":
|
211 |
message_response = messenger.get_interactive_response(data)
|
212 |
interactive_type = message_response.get("type")
|
|
|
213 |
message_id = message_response[interactive_type]["id"]
|
214 |
message_text = message_response[interactive_type]["title"]
|
215 |
logging.info(f"Interactive Message: {interactive_type} {message_id}: {message_text}")
|