|
|
@@ -3,6 +3,7 @@ from __future__ import annotations |
|
|
|
import random |
|
|
|
from datetime import datetime |
|
|
|
from enum import Enum |
|
|
|
from typing import cast |
|
|
|
|
|
|
|
from eloquent import DatabaseManager, Model |
|
|
|
|
|
|
@@ -25,9 +26,9 @@ def main ( |
|
|
|
else: |
|
|
|
message = [{ 'type': 'text', 'text': query.content }, |
|
|
|
{ 'type': 'image_url', 'image_url': query.image_url }] |
|
|
|
user: User | None = query.user |
|
|
|
user: User = query.user |
|
|
|
user_name: str | None = None |
|
|
|
if user is not None: |
|
|
|
if query.user_id is not None: |
|
|
|
user_name = user.name |
|
|
|
histories: list[dict[str, str]] = [] |
|
|
|
for history in query.answer_histories: |
|
|
|