datastruct-fixes

This commit is contained in:
2023-09-18 13:01:57 +03:00
parent cbf50c7c2a
commit 1c108c7fed
2 changed files with 6 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ async def handle_feedback(msg, state):
async def handle_answer(msg):
logger.info("handle answering feedback")
logger.debug(msg)
if "reply_to_message" in msg:
if msg.get("reply_to_message"):
answered_msg = msg.get("reply_to_message")
if "from" not in answered_msg:
answered_msg["from"] = vars(msg.from_user)