This commit is contained in:
Liu Zhicong
2023-09-21 11:46:37 -07:00
parent 46165fdcbf
commit 03036c7571
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -142,8 +142,10 @@ class TelegramTunnel(AgentTunnel):
photo_file = open(resp_msg.body,"rb")
if photo_file:
await update.message.reply_photo(resp_msg.body)
photo_file.close()
else:
await update.message.reply_text(resp_msg.body)
else:
await update.message.reply_text(resp_msg.body)