python-wechaty icon indicating copy to clipboard operation
python-wechaty copied to clipboard

🐛🐛 Bug Report: 发送gif动画失败

Open livingbody opened this issue 3 years ago • 3 comments

发送gif动画失败

  • 直接通过本地gif文件发送,发送的是生日快乐的动图
  • 通过gif url发送,直接提示内部错误
  • 修改后缀名位jpg发送,收到的是静止图片,不是动图

代码如下

        if text == 'gif':
            conversation: Union[
                Room, Contact] = from_contact if room is None else room
            await conversation.ready()
            await conversation.say('dong')
            file_box = FileBox.from_file('./img/6073085394399080129.gif')
            # file_box = FileBox.from_file('./img/693077938006393448.jpg')
            # file_box = FileBox.from_url('https://wimg.588ku.com/gif620/21/04/07/79c55627d7e376962deee9347838e4ca.gif', name="chongchongchong")
            await conversation.say(file_box)

livingbody avatar Sep 01 '21 09:09 livingbody

我的情况: wechaty 0.8.24 wechaty-grpc 0.20.19 wechaty-puppet 0.3.dev10 wechaty-puppet-hostie 0.4.1 wechaty-puppet-service 0.8.5

from_file发送gif会自动变成静图(gif的第一帧),example中的gif_bot测试为一张全黑的静图

ninetailskim avatar Sep 01 '21 09:09 ninetailskim

I'm sorry to tell you that wechaty can't send gif image file beacuase of some wechaty structure reasons, and there will be some changes in sending file implementation. please refer to : https://github.com/wechaty/python-wechaty-puppet-service/pull/64#issuecomment-911103851

Please keep eyes on this issue to get latest progress of this problem.

wj-Mcat avatar Sep 02 '21 15:09 wj-Mcat

I'm sorry to tell you that wechaty can't send gif image file beacuase of some wechaty structure reasons, and there will be some changes in sending file implementation. please refer to : wechaty/python-wechaty-puppet-service#64 (comment)

Please keep eyes on this issue to get latest progress of this problem.

Some bad news, I found the same mistake when i try to send gif with js-version wechaty. Are they caused by the same bug?

ninetailskim avatar Sep 03 '21 09:09 ninetailskim