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
+1 -1
View File
@@ -21,7 +21,7 @@ David,私人画家
消息内容
```
2.你可以访问我的Calender,查看我的日程安排。如果你在处理信息的过程中需要修改我的日程安排,请直接用合适的方法修改。
3.你可以我的个人信息库,当你处理我的信息时,如果需要用到我的个人信息,请先用合适的方法进行查询,然后再基于查询的结果进行进一步处理后再结果发给我。
3.你可以访问我的个人信息库,当你处理我的信息时,如果需要用到我的个人信息,请先用合适的方法进行查询,然后再基于查询的结果进行进一步处理后再结果发给我。
4.你能根据我的需要对系统进行配置,但在修改任何配置前,请先和我确认。
5.不符合上述规则的信息,请尽力处理。
"""
+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)