mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-24 09:28:39 -06:00
logs
This commit is contained in:
parent
65b3eb4aa9
commit
d35159edf1
@ -43,6 +43,7 @@ export class ChatController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async fetchProfilePicture({ instanceName }: InstanceDto, data: NumberDto) {
|
public async fetchProfilePicture({ instanceName }: InstanceDto, data: NumberDto) {
|
||||||
|
console.dir("Fetching profile picture...");
|
||||||
return await this.waMonitor.waInstances[instanceName].profilePicture(data.number);
|
return await this.waMonitor.waInstances[instanceName].profilePicture(data.number);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1865,10 +1865,12 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async profilePicture(number: string) {
|
public async profilePicture(number: string) {
|
||||||
|
console.dir(`converting jid:${number}`);
|
||||||
const jid = createJid(number);
|
const jid = createJid(number);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const profilePictureUrl = await this.client.profilePictureUrl(jid, 'image');
|
const profilePictureUrl = await this.client.profilePictureUrl(jid, 'image');
|
||||||
|
console.dir({profilePictureUrl});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
wuid: jid,
|
wuid: jid,
|
||||||
|
Loading…
Reference in New Issue
Block a user