Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. $array = range(1,100);
  2. foreach ($array as $value) {
  3. $Photos = $MadelineProto->photos->getUserPhotos(['user_id' => "me", 'offset' => 0, 'max_id' => 0, 'limit' => 1, ]);
  4. try {
  5. $inputPhoto = ['_' => 'inputPhoto', 'id' => $Photos['photos']['0']['id'], 'access_hash' => $Photos['photos']['0']['access_hash'], 'file_reference' => 'bytes'];
  6. $deletePhoto = $MadelineProto->photos->deletePhotos(['id'=>[$inputPhoto]]);
  7. echo '<pre>' . print_r($deletePhoto, 1) . '</pre>';
  8. } catch (Exception $e) {
  9. echo 'Error: ' . $e -> getMessage () . '';
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement