speed_test 修复 Topic Group (#97)

This commit is contained in:
瓜瓜吖 2022-11-19 22:39:04 +08:00 committed by GitHub
parent 884c77a22f
commit fa8f2eed78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ async def speedtest(client: Client, message: Message, request: AsyncClient):
if not photo:
return await msg.edit(des)
try:
await client.send_photo(message.chat.id, photo, caption=des)
await client.send_photo(message.chat.id, photo, caption=des, reply_to_message_id=message.reply_to_top_message_id or message.reply_to_message_id)
except Exception:
return await msg.edit(des)
await msg.safe_delete()