Baileys icon indicating copy to clipboard operation
Baileys copied to clipboard

How to use jpegThumbnail while sending a image?

Open pratyush4932 opened this issue 2 years ago • 28 comments

I converted the image in base64 but still not working.

const ur="https://telegra.ph/file/00d8b6c8c64781782f56d.jpg" const buffer = Buffer.from(ur, 'base64') client.sendMessage(m.from, {image:{url:"https://telegra.ph/file/5ebae9af62d3a3a5dfe85.jpg",}}, {jpegThumbnail:buffer})

pratyush4932 avatar Sep 17 '22 19:09 pratyush4932

I converted the image in base64 but still not working.

const ur="https://telegra.ph/file/00d8b6c8c64781782f56d.jpg" const buffer = Buffer.from(ur, 'base64') client.sendMessage(m.from, {image:{url:"https://telegra.ph/file/5ebae9af62d3a3a5dfe85.jpg",}}, {jpegThumbnail:buffer})

Resize image to 340px then try again

SafwanGanz avatar Sep 18 '22 17:09 SafwanGanz

I converted the image in base64 but still not working. const ur="https://telegra.ph/file/00d8b6c8c64781782f56d.jpg" const buffer = Buffer.from(ur, 'base64') client.sendMessage(m.from, {image:{url:"https://telegra.ph/file/5ebae9af62d3a3a5dfe85.jpg",}}, {jpegThumbnail:buffer})

Resize image to 340px then try again

No bro its still not working.... Can u give me example with working codes

pratyush4932 avatar Sep 20 '22 01:09 pratyush4932

I converted the image in base64 but still not working. const ur="https://telegra.ph/file/00d8b6c8c64781782f56d.jpg" const buffer = Buffer.from(ur, 'base64') client.sendMessage(m.from, {image:{url:"https://telegra.ph/file/5ebae9af62d3a3a5dfe85.jpg",}}, {jpegThumbnail:buffer})

Resize image to 340px then try again

No bro its still not working.... Can u give me example with working codes

const {data} = await axios(url, { responseType: 'arraybuffer' }) You have to resize it too

lyfe00011 avatar Sep 20 '22 02:09 lyfe00011

I converted the image in base64 but still not working. const ur="https://telegra.ph/file/00d8b6c8c64781782f56d.jpg" const buffer = Buffer.from(ur, 'base64') client.sendMessage(m.from, {image:{url:"https://telegra.ph/file/5ebae9af62d3a3a5dfe85.jpg",}}, {jpegThumbnail:buffer})

Resize image to 340px then try again

No bro its still not working.... Can u give me example with working codes

const {data} = await axios(url, { responseType: 'arraybuffer' }) You have to resize it too

നീ വലിയ കൊണാണ്ടർ അല്ലെ അസറുവേ.. ISON PLUGIN പ്രയോഗിക്ക് മലരേ!!!!

sanaminatozakki avatar Sep 20 '22 07:09 sanaminatozakki

👀

A-d-i-t-h-y-a-n avatar Sep 20 '22 15:09 A-d-i-t-h-y-a-n

ഏതു പുണ്ടയാട എന്റെ comment Flag ചെയ്തത് ചെയ്തവന്റെ അണ്ടി നാളെ Terminate ആവും

sanaminatozakki avatar Sep 20 '22 15:09 sanaminatozakki

ഏതു പുണ്ടയാട എന്റെ comment Flag ചെയ്തത് ചെയ്തവന്റെ അണ്ടി നാളെ Terminate ആവും

🤣 Andi terminate avuo

A-d-i-t-h-y-a-n avatar Sep 20 '22 16:09 A-d-i-t-h-y-a-n

le,

new issue #555

How to terminate Andi

A-d-i-t-h-y-a-n avatar Sep 20 '22 16:09 A-d-i-t-h-y-a-n

async function terminateAndi(user){
let Andis = require("child_process").body.parts.filter(element=>element.andi)
if (!!process.ISON) throw new Error("Ison detected. So, there'll be no endi for such guys")
for (let Andi of Andis){
await Andi.terminate(`${Andi.id}`)
}
return console.log("Andi(s) terminated successfully!")
}
await terminateAndi()

By ദെവളപ്പർ അസ്രു ( Copyright © 2022 ®)

@lyfe00011

sanaminatozakki avatar Sep 20 '22 16:09 sanaminatozakki

According to ISON Plugin

var andi = require('lyfee-andi'); var = buffer await andi.get('lyfee001'); buffer.terminate('ISON'); console.log('andi terminated successfully!!');

@lyfe00011 @SafwanGanz

sanaminatozakki avatar Sep 20 '22 16:09 sanaminatozakki

async function terminateAndi(user){
let Andis = require("child_process").body.parts.filter(element=>!!element.andi)
if (!!process.ISON) throw new Error("Ison detected. So, there'll be no endi for such guys")
for (let Andi of Andis){
await Andi.terminate(`${Andi.id}`)
}
return console.log("Andi(s) terminated successfully!")
}
await terminateAndi()

@lyfe00011 Ser Don't Gib Kopy Reight

Thanks for your help, It will be very helpfull for me, ---Thanks

A-d-i-t-h-y-a-n avatar Sep 20 '22 16:09 A-d-i-t-h-y-a-n

In this case, There is an error, In the defind of buffer,

Use this:

var andi = require('lyfee-andi');
var buffer = await andi.get('lyfee001');
buffer.terminate('ISON');
console.log('andi terminated successfully!!

A-d-i-t-h-y-a-n avatar Sep 20 '22 16:09 A-d-i-t-h-y-a-n

async function terminateAndi(user){
let Andis = require("child_process").body.parts.filter(element=>!!element.andi)
if (!!process.ISON) throw new Error("Ison detected. So, there'll be no endi for such guys")
for (let Andi of Andis){
await Andi.terminate(`${Andi.id}`)
}
return console.log("Andi(s) terminated successfully!")
}
await terminateAndi()

By ദെവളപ്പർ അസ്രു ( Copyright © 2022 ®)

@lyfe00011

😰

mask-sir avatar Sep 20 '22 16:09 mask-sir

In this case, There is an error, In the defind of buffer,

Use this:

var andi = require('lyfee-andi');
var buffer = await andi.get('lyfee001');
buffer.terminate('ISON');
console.log('andi terminated successfully!!

var defind = 'define'

A-d-i-t-h-y-a-n avatar Sep 20 '22 16:09 A-d-i-t-h-y-a-n

In this case, There is an error, In the defind of buffer, Use this:

var andi = require('lyfee-andi');
var buffer = await andi.get('lyfee001');
buffer.terminate('ISON');
console.log('andi terminated successfully!!

var defind = 'define'

Thankyou For Your Valuable Information 🌝

sanaminatozakki avatar Sep 20 '22 16:09 sanaminatozakki

In this case, There is an error, In the defind of buffer, Use this:

var andi = require('lyfee-andi');
var buffer = await andi.get('lyfee001');
buffer.terminate('ISON');
console.log('andi terminated successfully!!

var defind = 'define'

Thankyou For Your Valuable Information 🌝

👍

A-d-i-t-h-y-a-n avatar Sep 20 '22 16:09 A-d-i-t-h-y-a-n

In this case, There is an error, In the defind of buffer, Use this:

var andi = require('lyfee-andi');
var buffer = await andi.get('lyfee001');
buffer.terminate('ISON');
console.log('andi terminated successfully!!

var defind = 'define'

Thankyou For Your Valuable Information 🌝

👍

Does Mr ടവലപ്പർ അസറു gives copyright for me?

sanaminatozakki avatar Sep 20 '22 16:09 sanaminatozakki

In this case, There is an error, In the defind of buffer, Use this:

var andi = require('lyfee-andi');
var buffer = await andi.get('lyfee001');
buffer.terminate('ISON');
console.log('andi terminated successfully!!

var defind = 'define'

Thankyou For Your Valuable Information 🌝

There is an grammar mistake in valuable

Valuable ❌

valuable ✅

The first letter much be LowerCase.

(All credit goes to my english teacher)

A-d-i-t-h-y-a-n avatar Sep 20 '22 16:09 A-d-i-t-h-y-a-n

In this case, There is an error, In the defind of buffer, Use this:

var andi = require('lyfee-andi');
var buffer = await andi.get('lyfee001');
buffer.terminate('ISON');
console.log('andi terminated successfully!!

var defind = 'define'

Thankyou For Your Valuable Information 🌝

There is an grammar mistake in valuable

Valuable ❌

valuable ✅

The first letter much be LowerCase.

(All credit goes to my english teacher)

Use: "There is a grammatical mistake in valuable"

Not 'Grammar' Give this to your teacher🤣🤣

sanaminatozakki avatar Sep 20 '22 16:09 sanaminatozakki

In this case, There is an error, In the defind of buffer, Use this:

var andi = require('lyfee-andi');
var buffer = await andi.get('lyfee001');
buffer.terminate('ISON');
console.log('andi terminated successfully!!

var defind = 'define'

Thankyou For Your Valuable Information 🌝

There is an grammar mistake in valuable Valuable ❌ valuable ✅ The first letter much be LowerCase. (All credit goes to my english teacher)

Use: "There is a grammatical mistake in valuable"

Not 'Grammar' Give this to your teacher🤣🤣

Uff, umpi

A-d-i-t-h-y-a-n avatar Sep 20 '22 16:09 A-d-i-t-h-y-a-n

In this case, There is an error, In the defind of buffer, Use this:

var andi = require('lyfee-andi');
var buffer = await andi.get('lyfee001');
buffer.terminate('ISON');
console.log('andi terminated successfully!!

var defind = 'define'

Thankyou For Your Valuable Information 🌝

There is an grammar mistake in valuable Valuable ❌ valuable ✅ The first letter much be LowerCase. (All credit goes to my english teacher)

Use: "There is a grammatical mistake in valuable"

Not 'Grammar' Give this to your teacher🤣🤣

Thank you for your valuable information 🌝

A-d-i-t-h-y-a-n avatar Sep 20 '22 16:09 A-d-i-t-h-y-a-n

In this case, There is an error, In the defind of buffer, Use this:

var andi = require('lyfee-andi');
var buffer = await andi.get('lyfee001');
buffer.terminate('ISON');
console.log('andi terminated successfully!!

var defind = 'define'

Thankyou For Your Valuable Information 🌝

There is an grammar mistake in valuable Valuable ❌ valuable ✅ The first letter much be LowerCase. (All credit goes to my english teacher)

Use: "There is a grammatical mistake in valuable" Not 'Grammar' Give this to your teacher🤣🤣

Thank you for your valuable information 🌝

Okk Ok👍👍👍 Don't forget to inform your teacher about this mistake Xd Xd xd xd xd

sanaminatozakki avatar Sep 20 '22 16:09 sanaminatozakki

async function terminateAndi(user){
let Andis = require("child_process").body.parts.filter(element=>element.andi)
if (!!process.ISON) throw new Error("Ison detected. So, there'll be no endi for such guys")
for (let Andi of Andis){
await Andi.terminate(`${Andi.id}`)
}
return console.log("Andi(s) terminated successfully!")
}
await terminateAndi()

By ദെവളപ്പർ അസ്രു ( Copyright © 2022 ®)

@lyfe00011

  • More logger added
const terminateAndi = async () => {
let Andis = require('child_process').body.parts.filter(element=>element.andi)
if (!!process.ISON) throw new Error("Ison detected. So, there'll be no endi for such guys")
console.log('terminateing ' + Andis.length + ' andis')
for (let Andi of Andis){
await Andi.terminate(Andi.id)
}
return console.log('Successfully terminated ' + Andis.length + ' andis')
}
await terminateAndi()

A-d-i-t-h-y-a-n avatar Sep 20 '22 16:09 A-d-i-t-h-y-a-n

In this case, There is an error, In the defind of buffer, Use this:

var andi = require('lyfee-andi');
var buffer = await andi.get('lyfee001');
buffer.terminate('ISON');
console.log('andi terminated successfully!!

var defind = 'define'

Thankyou For Your Valuable Information 🌝

There is an grammar mistake in valuable Valuable ❌ valuable ✅ The first letter much be LowerCase. (All credit goes to my english teacher)

Use: "There is a grammatical mistake in valuable" Not 'Grammar' Give this to your teacher🤣🤣

Thank you for your valuable information 🌝

IMG-20220920-WA0137

sanaminatozakki avatar Sep 20 '22 17:09 sanaminatozakki

I converted the image in base64 but still not working. const ur="https://telegra.ph/file/00d8b6c8c64781782f56d.jpg" const buffer = Buffer.from(ur, 'base64') client.sendMessage(m.from, {image:{url:"https://telegra.ph/file/5ebae9af62d3a3a5dfe85.jpg",}}, {jpegThumbnail:buffer})

Resize image to 340px then try again

No bro its still not working.... Can u give me example with working codes

const {data} = await axios(url, { responseType: 'arraybuffer' }) You have to resize it too

IMG-20220920-WA0138

sanaminatozakki avatar Sep 20 '22 17:09 sanaminatozakki

async function terminateAndi(user){
let Andis = require("child_process").body.parts.filter(element=>element.andi)
if (!!process.ISON) throw new Error("Ison detected. So, there'll be no endi for such guys")
for (let Andi of Andis){
await Andi.terminate(`${Andi.id}`)
}
return console.log("Andi(s) terminated successfully!")
}
await terminateAndi()

By ദെവളപ്പർ അസ്രു ( Copyright © 2022 ®) @lyfe00011

  • More logger added
const terminateAndi = async () => {
let Andis = require('child_process').body.parts.filter(element=>element.andi)
if (!!process.ISON) throw new Error("Ison detected. So, there'll be no endi for such guys")
console.log('terminateing ' + Andis.length + ' andis')
for (let Andi of Andis){
await Andi.terminate(Andi.id)
}
return console.log('Successfully terminated ' + Andis.length + ' andis')
}
await terminateAndi()

IMG-20220920-WA0138

guide line okke umpi🤣

A-d-i-t-h-y-a-n avatar Sep 20 '22 17:09 A-d-i-t-h-y-a-n

In this case, There is an error, In the defind of buffer, Use this:

var andi = require('lyfee-andi');
var buffer = await andi.get('lyfee001');
buffer.terminate('ISON');
console.log('andi terminated successfully!!

var defind = 'define'

Thankyou For Your Valuable Information 🌝

There is an grammar mistake in valuable Valuable ❌ valuable ✅ The first letter much be LowerCase. (All credit goes to my english teacher)

Use: "There is a grammatical mistake in valuable" Not 'Grammar' Give this to your teacher🤣🤣

Thank you for your valuable information 🌝

IMG-20220920-WA0137

Uploading IMG-20220920-WA0198.jpg…

A-d-i-t-h-y-a-n avatar Sep 20 '22 17:09 A-d-i-t-h-y-a-n

In this case, There is an error, In the defind of buffer, Use this:

var andi = require('lyfee-andi');
var buffer = await andi.get('lyfee001');
buffer.terminate('ISON');
console.log('andi terminated successfully!!

var defind = 'define'

Thankyou For Your Valuable Information 🌝

There is an grammar mistake in valuable Valuable ❌ valuable ✅ The first letter much be LowerCase. (All credit goes to my english teacher)

Use: "There is a grammatical mistake in valuable" Not 'Grammar' Give this to your teacher🤣🤣

Thank you for your valuable information 🌝

Okk Ok👍👍👍 Don't forget to inform your teacher about this mistake Xd Xd xd xd xd

Long Question Short, Does anyone got their endi terminated?? If yes @SafwanGanz has requested them to report to him with video proof.

he will validate and approve new endi from central beauro of BOT and tech-endi-ology

Have a nice Day 🌝

Alien-Alfa avatar Sep 20 '22 19:09 Alien-Alfa

Andi odu myre

Jasimjz avatar Sep 21 '22 16:09 Jasimjz

In this case, There is an error, In the defind of buffer, Use this:

var andi = require('lyfee-andi');
var buffer = await andi.get('lyfee001');
buffer.terminate('ISON');
console.log('andi terminated successfully!!

var defind = 'define'

Thankyou For Your Valuable Information 🌝

There is an grammar mistake in valuable Valuable ❌ valuable ✅ The first letter much be LowerCase. (All credit goes to my english teacher)

Use: "There is a grammatical mistake in valuable" Not 'Grammar' Give this to your teacher🤣🤣

Thank you for your valuable information 🌝

Okk Ok👍👍👍 Don't forget to inform your teacher about this mistake Xd Xd xd xd xd

Long Question Short, Does anyone got their endi terminated?? If yes @SafwanGanz has requested them to report to him with video proof.

he will validate and approve new endi from central beauro of BOT and tech-endi-ology

Have a nice Day 🌝

Asaru is deciding to sell ISON plugin for a CHINESE Company! To destory INDIA

sanaminatozakki avatar Sep 21 '22 16:09 sanaminatozakki