event.source.user_id
Browse files
main.py
CHANGED
@@ -59,7 +59,7 @@ def callback():
|
|
59 |
@handler.add(MessageEvent, message=TextMessageContent)
|
60 |
def handle_message(event):
|
61 |
response = model.generate_content(event.message.text)
|
62 |
-
print(f"UserID: {event.source.
|
63 |
print(f"Q: {event.message.text}")
|
64 |
print(f"A: {response.text}")
|
65 |
with ApiClient(configuration) as api_client:
|
|
|
59 |
@handler.add(MessageEvent, message=TextMessageContent)
|
60 |
def handle_message(event):
|
61 |
response = model.generate_content(event.message.text)
|
62 |
+
print(f"UserID: {event.source.user_id}")
|
63 |
print(f"Q: {event.message.text}")
|
64 |
print(f"A: {response.text}")
|
65 |
with ApiClient(configuration) as api_client:
|