Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <?php
  2. date_default_timezone_set('Europe/Rome');
  3. if ($msg == '.bl') {
  4. $contacts = $MadelineProto
  5. ->contacts
  6. ->getBlocked(['offset' => 0, 'limit' => 2147483647]) ['blocked'];
  7. $id = 'ℹī¸ <b>Lista utenti bloccati</b>' . PHP_EOL;
  8. foreach ($contacts as $asa) {
  9. $n = $MadelineProto->get_info($asa['user_id']) ['User']['first_name'];
  10. $date = date('d-m-y', $asa['date']);
  11. $a = $asa['user_id'];
  12. $m = "<a href='tg://user?id=$a'>" . htmlspecialchars($n) . "</a>";
  13. $id .= 'â€ĸ ' . $m . ' <code>' . $asa['user_id'] . '</code> <i>' . $date . '</i>' . PHP_EOL;
  14. }
  15. $MadelineProto
  16. ->messages
  17. ->editMessage(['peer' => $chatID, 'message' => $id, 'parse_mode' => 'HTML', 'id' => $msgid], ['noResponse' => true]);
  18.  
  19. }
  20.  
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement