ehForwarderBot / efb-telegram-master

EFB Telegram Master Channel, a channel for EH Forwarder Bot.
GNU Affero General Public License v3.0
223 stars 78 forks source link

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

Open shejialuo opened 1 year ago

shejialuo commented 1 year ago

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

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

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