printDiscoveredChats(); // Get most recent chat ID (usually yours) echo "šŸŽÆ Most Recent Chat ID:\n"; echo str_repeat('=', 60) . "\n"; $mostRecent = $discovery->getMostRecentChatId(); if ($mostRecent) { echo " šŸ“ Use this Chat ID in your configuration:\n"; echo " šŸ’¬ Chat ID: {$mostRecent->toString()}\n\n"; echo " šŸ“‹ Copy this for TelegramConfig.php:\n"; echo " TelegramChatId::fromString('{$mostRecent->toString()}')\n\n"; } else { echo " āš ļø No chat ID found.\n"; echo " šŸ“² Please:\n"; echo " 1. Open your bot: https://t.me/michael_schiemer_bot\n"; echo " 2. Click 'START' or send any message\n"; echo " 3. Run this script again\n\n"; } echo "āœ… Discovery completed!\n"; } catch (\Throwable $e) { echo "\nāŒ Discovery failed: {$e->getMessage()}\n"; echo "Stack trace:\n{$e->getTraceAsString()}\n"; exit(1); }