fix: send video filename

fix: send msg don't return message_id on Linux
This commit is contained in:
linyuchen
2024-03-06 21:14:13 +08:00
parent aedc8cfc91
commit e6d36dc6c3
2 changed files with 7 additions and 3 deletions

View File

@@ -104,8 +104,8 @@ export class SendMsgElementConstructor {
return element;
}
static video(filePath: string): Promise<SendFileElement> {
return SendMsgElementConstructor.file(filePath, true);
static video(filePath: string, fileName: string=""): Promise<SendFileElement> {
return SendMsgElementConstructor.file(filePath, true, fileName);
}
static async ptt(pttPath: string): Promise<SendPttElement> {