This commit is contained in:
parent
757bf60e18
commit
6b6cedf0f5
|
@ -34,7 +34,7 @@ async def load_messages(chat_id: str, limit: int = 5, offset: int = 0, ids: Opti
|
||||||
replies = []
|
replies = []
|
||||||
for m in messages:
|
for m in messages:
|
||||||
if m:
|
if m:
|
||||||
reply_to = json.loads(m).get("replyTo")
|
reply_to = m.get("replyTo")
|
||||||
if reply_to:
|
if reply_to:
|
||||||
reply_to = int(reply_to)
|
reply_to = int(reply_to)
|
||||||
if reply_to not in message_ids:
|
if reply_to not in message_ids:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user