Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $array = range(1,100);
- foreach ($array as $value) {
- $Photos = $MadelineProto->photos->getUserPhotos(['user_id' => "me", 'offset' => 0, 'max_id' => 0, 'limit' => 1, ]);
- try {
- $inputPhoto = ['_' => 'inputPhoto', 'id' => $Photos['photos']['0']['id'], 'access_hash' => $Photos['photos']['0']['access_hash'], 'file_reference' => 'bytes'];
- $deletePhoto = $MadelineProto->photos->deletePhotos(['id'=>[$inputPhoto]]);
- echo '<pre>' . print_r($deletePhoto, 1) . '</pre>';
- } catch (Exception $e) {
- echo 'Error: ' . $e -> getMessage () . '';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement