solnone commited on
Commit
cac4e75
·
1 Parent(s): 9918e06

event.source.user_id

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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.userId}")
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: