ehForwarderBot / ehForwarderBot/efb-telegram-master

[FR] Keep the video name with the original file name

Open
#136 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
220
Forks
82
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

At now, the efb-telegram-master would wrap the video message with a temporary file to the slave. However, the problem is that the name would be changed to the temporary file name but not the original name, see the following example.

![image](https://github.com/ehForwarderBot/efb-telegram-master/assets/56911263/75afb425-a5ed-46ec-8dcb-005c12af66c2)

For slaves, when it uses `msg.filename` it could only get the `tmpigih7v8l.mp4` such that losing the original information.

**Describe the solution you'd like**

Keep the video name consistent with the original file name. Don't change it to the temporary file name.

**Describe alternatives you've considered**

None.

**Additional context**

When developing the code for sending a video to the QQ. It's bad because the filename will be the filename of the temporary name. However, for the `MsgType.File` type, it is OK.

![image](https://github.com/ehForwarderBot/efb-telegram-master/assets/56911263/1dd8e77d-0e4d-478e-a242-fc14fb0903f3)

See https://github.com/ehForwarderBot/efb-qq-plugin-go-cqhttp/pull/68

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.