-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands.txt
More file actions
35 lines (28 loc) · 1.09 KB
/
Copy pathcommands.txt
File metadata and controls
35 lines (28 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const response = await fetch('https://picsum.photos/800/600');
const blob = await response.blob();
await window.sendDisappearingPhoto(blob, 10);
localStorage.removeItem('telegram_worker_patched')
(async () => {
const cache = await caches.open('tt-assets');
const requests = await cache.keys();
for (const req of requests) {
if (req.url.includes('6854') && req.url.includes('.js')) {
const response = await cache.match(req);
const code = await response.text();
// Search for the patched pattern
const match = code.match(/new \w+\.InputMediaUploadedPhoto\(\{[^}]+ttlSeconds[^}]*\}\)/);
if (match) {
console.log('✅ PATCHED CODE FOUND:');
console.log(match[0]);
} else {
console.log('❌ Original code (not patched yet)');
}
// Show a snippet around the change
const idx = code.indexOf('InputMediaUploadedPhoto');
if (idx !== -1) {
console.log('\nCode snippet:');
console.log(code.substring(idx, idx + 200));
}
}
}
})();