File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818* Adjustment in the saving of contacts, saving the information of the number and Jid
1919* Update Dockerfile
2020* If you pass empty events in create instance and set webhook it is understood as all
21+ * Fixed issue that did not output base64 averages
2122
2223### Integrations
2324
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ export class Logger {
7575 console . log (
7676 /*Command.UNDERSCORE +*/ Command . BRIGHT + Level [ type ] ,
7777 '[Evolution API]' ,
78+ Command . BRIGHT + Color [ type ] ,
7879 `v${ packageJson . version } ` ,
7980 Command . BRIGHT + Color [ type ] ,
8081 process . pid . toString ( ) ,
Original file line number Diff line number Diff line change @@ -2178,6 +2178,14 @@ export class WAStartupService {
21782178 this . logger . verbose ( 'File name: ' + mediaMessage . fileName ) ;
21792179 }
21802180
2181+ if ( mediaMessage . mediatype === 'image' && ! mediaMessage . fileName ) {
2182+ mediaMessage . fileName = 'image.png' ;
2183+ }
2184+
2185+ if ( mediaMessage . mediatype === 'video' && ! mediaMessage . fileName ) {
2186+ mediaMessage . fileName = 'video.mp4' ;
2187+ }
2188+
21812189 let mimetype : string ;
21822190
21832191 if ( isURL ( mediaMessage . media ) ) {
You can’t perform that action at this time.
0 commit comments