class Notify { static function telegram($msg) { $cfg = require __DIR__.'/../config/telegram.php'; file_get_contents( "https://api.telegram.org/bot{$cfg['bot_token']}/sendMessage?chat_id={$cfg['chat_id']}&text=".urlencode($msg) ); } }