API-XX commited on
Commit
3cbeb65
Β·
verified Β·
1 Parent(s): e7bfea7

Upload case.js

Browse files
Files changed (1) hide show
  1. case.js +1 -31
case.js CHANGED
@@ -947,7 +947,6 @@ if (!fs.existsSync(chatMemoryFile)) {
947
  > ${sign} ${prefix}block
948
  > ${sign} ${prefix}unblock
949
  > ${sign} ${prefix}setpp
950
- > ${sign} ${prefix}delpp
951
  > ${sign} ${prefix}getpp
952
  > ${sign} ${prefix}setbio
953
  > ${sign} ${prefix}restart
@@ -1557,35 +1556,6 @@ case 'update': {
1557
  }
1558
  }
1559
  break;
1560
- case 'delppbot': case 'delpp': {
1561
- if (!isOwner) return reply(mess.only.owner);
1562
- await loading();
1563
-
1564
- try {
1565
- await conn.query({
1566
- tag: 'iq',
1567
- attrs: {
1568
- to: botNumber,
1569
- type: 'set',
1570
- xmlns: 'w:profile:picture'
1571
- },
1572
- content: [{
1573
- tag: 'picture',
1574
- attrs: {
1575
- type: 'image'
1576
- },
1577
- content: null // Removing profile picture
1578
- }]
1579
- });
1580
-
1581
- reply("βœ… *Profile picture removed successfully!*");
1582
- } catch (error) {
1583
- console.error("Error deleting profile picture:", error);
1584
- reply("❌ *Failed to delete profile picture. Try again later.*");
1585
- }
1586
-
1587
- break;
1588
- }
1589
  case 'fetchpp': case 'getpp': {
1590
  if (!m.quoted) return reply("❌ Please reply to a user's message to fetch their profile picture.");
1591
 
@@ -1596,7 +1566,7 @@ case 'fetchpp': case 'getpp': {
1596
  profilePicUrl = await conn.profilePictureUrl(user, 'image');
1597
  } catch (err) {
1598
  console.error("Error fetching profile picture:", err);
1599
- profilePicUrl = "https://telegra.ph/file/3fa0c0cfdd2a631c3b310.jpg"; // Default no-profile image
1600
  }
1601
 
1602
  await conn.sendMessage(m.chat, {
 
947
  > ${sign} ${prefix}block
948
  > ${sign} ${prefix}unblock
949
  > ${sign} ${prefix}setpp
 
950
  > ${sign} ${prefix}getpp
951
  > ${sign} ${prefix}setbio
952
  > ${sign} ${prefix}restart
 
1556
  }
1557
  }
1558
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1559
  case 'fetchpp': case 'getpp': {
1560
  if (!m.quoted) return reply("❌ Please reply to a user's message to fetch their profile picture.");
1561
 
 
1566
  profilePicUrl = await conn.profilePictureUrl(user, 'image');
1567
  } catch (err) {
1568
  console.error("Error fetching profile picture:", err);
1569
+ profilePicUrl = "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcThCo9sua3PNMXNAACe8MWOMbK93g-_GhThKA&usqp=CAU";
1570
  }
1571
 
1572
  await conn.sendMessage(m.chat, {