mirror of
https://github.com/zhayujie/bot-on-anything.git
synced 2026-02-20 01:29:52 +08:00
add ImageGen
This commit is contained in:
@@ -53,7 +53,8 @@ class TelegramChannel(Channel):
|
||||
if not img_urls:
|
||||
return
|
||||
if not isinstance(img_urls, list):
|
||||
return img_urls
|
||||
bot.reply_to(msg,img_urls)
|
||||
return
|
||||
for url in img_urls:
|
||||
# 图片下载
|
||||
pic_res = requests.get(url, stream=True)
|
||||
|
||||
@@ -172,7 +172,8 @@ class WechatChannel(Channel):
|
||||
if not img_urls:
|
||||
return
|
||||
if not isinstance(img_urls, list):
|
||||
return img_urls
|
||||
self.send(channel_conf_val(const.WECHAT, "single_chat_reply_prefix") + img_urls, reply_user_id)
|
||||
return
|
||||
for url in img_urls:
|
||||
# 图片下载
|
||||
pic_res = requests.get(url, stream=True)
|
||||
|
||||
Reference in New Issue
Block a user