Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何发送gif动图? #54

Open
rhyryy opened this issue Oct 24, 2023 · 1 comment
Open

如何发送gif动图? #54

rhyryy opened this issue Oct 24, 2023 · 1 comment

Comments

@rhyryy
Copy link

rhyryy commented Oct 24, 2023

使用File.photo(bytes)构造的消息段发送后是静态图片
使用File.animation(bytes)构造的消息段发送后会变成document文件
使用File.animation(("xxxx.gif",bytes))构造的消息端发送后虽然能播放,但是格式变为了mp4,后缀名变为了xxx.gif.mp4
如何通过消息段正确的发送gif图片?

@j1g5awi
Copy link
Member

j1g5awi commented Nov 13, 2023

暂时找不到解决办法,方法三的 Resuset 中已经带了 mime_type,但 telegram 不认。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants