fix bug
This commit is contained in:
@@ -21,7 +21,7 @@ David,私人画家
|
|||||||
消息内容
|
消息内容
|
||||||
```
|
```
|
||||||
2.你可以访问我的Calender,查看我的日程安排。如果你在处理信息的过程中需要修改我的日程安排,请直接用合适的方法修改。
|
2.你可以访问我的Calender,查看我的日程安排。如果你在处理信息的过程中需要修改我的日程安排,请直接用合适的方法修改。
|
||||||
3.你可以放我的个人信息库,当你处理我的信息时,如果需要用到我的个人信息,请先用合适的方法进行查询,然后再基于查询的结果进行进一步处理后再讲结果发给我。
|
3.你可以访问我的个人信息库,当你处理我的信息时,如果需要用到我的个人信息,请先用合适的方法进行查询,然后再基于查询的结果进行进一步处理后再将结果发给我。
|
||||||
4.你能根据我的需要对系统进行配置,但在修改任何配置前,请先和我确认。
|
4.你能根据我的需要对系统进行配置,但在修改任何配置前,请先和我确认。
|
||||||
5.不符合上述规则的信息,请尽力处理。
|
5.不符合上述规则的信息,请尽力处理。
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -142,8 +142,10 @@ class TelegramTunnel(AgentTunnel):
|
|||||||
photo_file = open(resp_msg.body,"rb")
|
photo_file = open(resp_msg.body,"rb")
|
||||||
if photo_file:
|
if photo_file:
|
||||||
await update.message.reply_photo(resp_msg.body)
|
await update.message.reply_photo(resp_msg.body)
|
||||||
|
photo_file.close()
|
||||||
else:
|
else:
|
||||||
await update.message.reply_text(resp_msg.body)
|
await update.message.reply_text(resp_msg.body)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
await update.message.reply_text(resp_msg.body)
|
await update.message.reply_text(resp_msg.body)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user