mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
remove console.log
This commit is contained in:
@@ -733,7 +733,6 @@ export const downloadMediaMessage = async(
|
|||||||
const contentType = getContentType(mContent)
|
const contentType = getContentType(mContent)
|
||||||
let mediaType = contentType?.replace('Message', '') as MediaType
|
let mediaType = contentType?.replace('Message', '') as MediaType
|
||||||
const media = mContent[contentType!]
|
const media = mContent[contentType!]
|
||||||
console.log({ mContent, contentType, media })
|
|
||||||
|
|
||||||
if(!media || typeof media !== 'object' || (!('url' in media) && !('thumbnailDirectPath' in media))) {
|
if(!media || typeof media !== 'object' || (!('url' in media) && !('thumbnailDirectPath' in media))) {
|
||||||
throw new Boom(`"${contentType}" message is not a media message`)
|
throw new Boom(`"${contentType}" message is not a media message`)
|
||||||
|
|||||||
Reference in New Issue
Block a user