[2026-05-03 09:47:41] [helpers.php:176]              ⚠️ MySQL prepare failed: Table 'hiparklv_tga.runtime_objects' doesn't exist
[2026-05-03 09:58:31] [helpers.php:176]              ⚠️ MySQL prepare failed: Table 'hiparklv_tga.runtime_objects' doesn't exist
[2026-05-03 10:01:27] [Command line code:1]          ⚠️ MySQL provider enabled, but DB credentials are incomplete.
[2026-05-03 12:49:02] [unknown:?]                     
[2026-05-03 12:49:02] [unknown:?]                    =======================  New message =======================
[2026-05-03 12:49:02] [unknown:?]                    Data: {
    "update_id": 900328143,
    "message": {
        "message_id": 1,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1777801741,
        "text": "\/start",
        "entities": [
            {
                "offset": 0,
                "length": 6,
                "type": "bot_command"
            }
        ]
    }
}
[2026-05-03 12:49:02] [session.php:177]              ⚠️ MySQL provider enabled, but DB credentials are incomplete.
[2026-05-03 12:49:02] [session.php:106]              ❌ MySQL-only mode: getObjectCodeForChat failed because DB connection is unavailable
[2026-05-03 12:49:02] [helpers.php:411]              ❌ MySQL-only mode: getObjectCodeForChat failed because DB connection is unavailable
[2026-05-03 12:49:02] [unknown:?]                    Telegram context source: missing
[2026-05-03 12:49:02] [unknown:?]                    ❌ Telegram token context is missing for this update. Skipping processing.
[2026-05-03 12:52:30] [unknown:?]                    ❌ Получено некорректное обновление
[2026-05-03 12:52:58] [unknown:?]                    ❌ Получено некорректное обновление
[2026-05-03 12:53:41] [unknown:?]                    ❌ Получено некорректное обновление
[2026-05-03 12:54:29] [unknown:?]                     
[2026-05-03 12:54:29] [unknown:?]                    =======================  New message =======================
[2026-05-03 12:54:29] [unknown:?]                    Data: {
    "update_id": 900328144,
    "message": {
        "message_id": 2,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1777802068,
        "text": "\/start",
        "entities": [
            {
                "offset": 0,
                "length": 6,
                "type": "bot_command"
            }
        ]
    }
}
[2026-05-03 12:54:29] [session.php:177]              ⚠️ MySQL provider enabled, but DB credentials are incomplete.
[2026-05-03 12:54:29] [session.php:106]              ❌ MySQL-only mode: getObjectCodeForChat failed because DB connection is unavailable
[2026-05-03 12:54:29] [helpers.php:411]              ❌ MySQL-only mode: getObjectCodeForChat failed because DB connection is unavailable
[2026-05-03 12:54:29] [unknown:?]                    Telegram context source: missing
[2026-05-03 12:54:29] [unknown:?]                    ❌ Telegram token context is missing for this update. Skipping processing.
[2026-05-03 12:55:03] [unknown:?]                     
[2026-05-03 12:55:03] [unknown:?]                    =======================  New message =======================
[2026-05-03 12:55:03] [unknown:?]                    Data: {
    "update_id": 900328145,
    "message": {
        "message_id": 3,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1777802102,
        "text": "\/start",
        "entities": [
            {
                "offset": 0,
                "length": 6,
                "type": "bot_command"
            }
        ]
    }
}
[2026-05-03 12:55:03] [session.php:177]              ⚠️ MySQL provider enabled, but DB credentials are incomplete.
[2026-05-03 12:55:03] [session.php:106]              ❌ MySQL-only mode: getObjectCodeForChat failed because DB connection is unavailable
[2026-05-03 12:55:03] [helpers.php:411]              ❌ MySQL-only mode: getObjectCodeForChat failed because DB connection is unavailable
[2026-05-03 12:55:03] [unknown:?]                    Telegram context source: missing
[2026-05-03 12:55:03] [unknown:?]                    ❌ Telegram token context is missing for this update. Skipping processing.
[2026-05-03 12:58:10] [unknown:?]                     
[2026-05-03 12:58:10] [unknown:?]                    =======================  New message =======================
[2026-05-03 12:58:10] [unknown:?]                    Data: {
    "update_id": 900328146,
    "message": {
        "message_id": 4,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1777802290,
        "text": "\/start",
        "entities": [
            {
                "offset": 0,
                "length": 6,
                "type": "bot_command"
            }
        ]
    }
}
[2026-05-03 12:58:10] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-03 12:58:10] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-03 12:58:10] [unknown:?]                    Setting initial user language to: en
[2026-05-03 12:58:10] [telegram.php:194]             ⚠️ object_code is missing or invalid in session data
[2026-05-03 12:58:10] [telegram.php:206]             Sending message content: Lūdzu izvēlieties valodu / Please select your language / Выберите язык:
[2026-05-03 12:58:10] [telegram.php:206]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 12:58:11] [telegram.php:206]             Message sent successfully (ID: 5)
[2026-05-03 12:58:15] [unknown:?]                     
[2026-05-03 12:58:15] [unknown:?]                    =======================  New message =======================
[2026-05-03 12:58:15] [unknown:?]                    Data: {
    "update_id": 900328147,
    "callback_query": {
        "id": "3683081553329226653",
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "first_name": "DMZ",
            "username": "DmCountry",
            "language_code": "en"
        },
        "message": {
            "message_id": 5,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 5152501544,
                "first_name": "DMZ",
                "username": "DmCountry",
                "type": "private"
            },
            "date": 1777802291,
            "text": "Lūdzu izvēlieties valodu \/ Please select your language \/ Выберите язык:",
            "reply_markup": {
                "inline_keyboard": [
                    [
                        {
                            "text": "🇱🇻 Latviešu",
                            "callback_data": "lv"
                        },
                        {
                            "text": "🇬🇧 English",
                            "callback_data": "en"
                        },
                        {
                            "text": "🇷🇺 Русский",
                            "callback_data": "ru"
                        }
                    ]
                ]
            }
        },
        "chat_instance": "3018575112809351544",
        "data": "ru"
    }
}
[2026-05-03 12:58:15] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-03 12:58:15] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-03 12:58:15] [telegram.php:120]             Saved temporary language: ru for chat_id: 5152501544
[2026-05-03 12:58:15] [unknown:?]                    Language selected via callback: ru
[2026-05-03 12:58:15] [unknown:?]                    🔄 Processing callback query: ru
[2026-05-03 12:58:15] [telegram.php:250]             Saved temporary language: ru for chat_id: 5152501544
[2026-05-03 12:58:15] [telegram.php:254]             ⚠️ object_code is missing or invalid in session data
[2026-05-03 12:58:15] [telegram.php:257]             Answering callback query: 3683081553329226653
[2026-05-03 12:58:16] [telegram.php:260]             Sending message content: 🌍   Язык изменен на русский
[2026-05-03 12:58:16] [telegram.php:260]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 12:58:16] [telegram.php:260]             Message sent successfully (ID: 6)
[2026-05-03 12:58:16] [telegram.php:263]             Sending message content: Пожалуйста, введите код объекта:
[2026-05-03 12:58:16] [telegram.php:263]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 12:58:16] [telegram.php:263]             Message sent successfully (ID: 7)
[2026-05-03 12:58:29] [unknown:?]                     
[2026-05-03 12:58:29] [unknown:?]                    =======================  New message =======================
[2026-05-03 12:58:29] [unknown:?]                    Data: {
    "update_id": 900328148,
    "message": {
        "message_id": 8,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1777802309,
        "text": "SEM260501"
    }
}
[2026-05-03 12:58:29] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-03 12:58:29] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-03 12:58:29] [telegram.php:126]             Loaded temporary language: ru for chat_id: 5152501544
[2026-05-03 12:58:29] [unknown:?]                    Using saved language preference: ru
[2026-05-03 12:58:29] [unknown:?]                    User entered object code: SEM260501
[2026-05-03 12:58:29] [helpers.php:308]              🔐 Telegram token context set (entered_object_code)
[2026-05-03 12:58:29] [telegram.php:566]             ✅ Saved object code: SEM260501
[2026-05-03 12:58:29] [helpers.php:979]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-03 12:58:29] [telegram.php:578]             Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️ℹ️   Пожалуйста, отправьте ваш номер телефона, используя кнопку внизу экрана.
[2026-05-03 12:58:29] [telegram.php:578]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 12:58:30] [telegram.php:578]             Message sent successfully (ID: 9)
[2026-05-03 12:58:30] [unknown:?]                    Stored keyboard message ID in session: 9
[2026-05-03 12:58:30] [telegram.php:590]             Deleted temporary language file for chat_id: 5152501544
[2026-05-03 12:58:35] [unknown:?]                     
[2026-05-03 12:58:35] [unknown:?]                    =======================  New message =======================
[2026-05-03 12:58:35] [unknown:?]                    Data: {
    "update_id": 900328149,
    "message": {
        "message_id": 10,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1777802315,
        "reply_to_message": {
            "message_id": 9,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 5152501544,
                "first_name": "DMZ",
                "username": "DmCountry",
                "type": "private"
            },
            "date": 1777802310,
            "text": "🅿️   Semarah Hotel Lielupe   🅿️\n\nℹ️   Пожалуйста, отправьте ваш номер телефона, используя кнопку внизу экрана."
        },
        "contact": {
            "phone_number": "37129275774",
            "first_name": "DMZ",
            "user_id": 5152501544
        }
    }
}
[2026-05-03 12:58:35] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-03 12:58:35] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-03 12:58:35] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-03 12:58:35] [telegram.php:623]             Processing phone number: 37129275774 for object: SEM260501
[2026-05-03 12:58:35] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 12:58:35] [telegram.php:623]             Cleaned phone number: 37129275774
[2026-05-03 12:58:35] [telegram.php:623]             Comparing: User phone '37129275774' with API phone '37129275774' or '29275774'
[2026-05-03 12:58:35] [awaiting_phone.php:55]        ✅ Phone number match found with key: 5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f
[2026-05-03 12:58:35] [awaiting_phone.php:88]        ✅ Phone verified for SEMARAH with API key: 5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f
[2026-05-03 12:58:35] [awaiting_phone.php:97]        Deleting message: 9
[2026-05-03 12:58:35] [awaiting_phone.php:97]        ℹ️ Message deleted successfully
[2026-05-03 12:58:35] [telegram.php:623]             Deleted keyboard message from session: 9
[2026-05-03 12:58:35] [helpers.php:587]              Sending message content: ✅   Номер телефона верифицирован!
[2026-05-03 12:58:35] [awaiting_phone.php:115]       Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 12:58:36] [awaiting_phone.php:115]       Message sent successfully (ID: 11)
[2026-05-03 12:58:36] [helpers.php:979]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-03 12:58:36] [awaiting_phone.php:139]       Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Введите номер автомобиля:
[2026-05-03 12:58:36] [awaiting_phone.php:139]       Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 12:58:36] [awaiting_phone.php:139]       Message sent successfully (ID: 12)
[2026-05-03 13:02:42] [unknown:?]                     
[2026-05-03 13:02:42] [unknown:?]                    =======================  New message =======================
[2026-05-03 13:02:42] [unknown:?]                    Data: {
    "update_id": 900328150,
    "message": {
        "message_id": 13,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1777802562,
        "text": "Ke919"
    }
}
[2026-05-03 13:02:42] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-03 13:02:42] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-03 13:02:42] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-03 13:02:42] [helpers.php:979]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-03 13:02:42] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:02:42] [helpers.php:1207]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-03 13:02:42] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:02:42] [helpers.php:1207]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-03 13:02:42] [telegram.php:627]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-03 13:02:42] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:02:42] [helpers.php:1088]             ✅ API key is active
[2026-05-03 13:02:42] [validator_api.php:286]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-03 13:02:42] [validator_api.php:329]        Using validator API URL: http://87.110.183.186:5004/api/validator/ (Protocol: http)
[2026-05-03 13:02:42] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:02:42] [helpers.php:947]              ✅ Found UID for API key: HIP_01
[2026-05-03 13:02:42] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:02:42] [helpers.php:1207]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-03 13:02:42] [validator_api.php:56]         🔍 Making API request to: http://87.110.183.186:5004/api/validator/validate
[2026-05-03 13:02:42] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"KE919","UID":"HIP_01","PartnerID":2}
[2026-05-03 13:02:42] [validator_api.php:368]        No certificate file found for subdomain: SEMARAH
[2026-05-03 13:02:42] [validator_api.php:56]         ❌ API request failed: file_get_contents(http://87.110.183.186:5004/api/validator/validate): Failed to open stream: Connection refused
[2026-05-03 13:02:42] [telegram.php:627]             ❌ ERROR: Validation request failed
[2026-05-03 13:02:42] [awaiting_car_number.php:236]  Sending message content: ❌   Ошибка подключения к сервису проверки номеров.Пожалуйста, попробуйте позже или свяжитесь со службой сервисной поддержки.
[2026-05-03 13:02:42] [awaiting_car_number.php:236]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 13:02:43] [awaiting_car_number.php:236]  Message sent successfully (ID: 14)
[2026-05-03 13:02:43] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-03 13:02:43] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 13:02:43] [awaiting_car_number.php:240]  Message sent successfully (ID: 15)
[2026-05-03 13:06:57] [unknown:?]                     
[2026-05-03 13:06:57] [unknown:?]                    =======================  New message =======================
[2026-05-03 13:06:57] [unknown:?]                    Data: {
    "update_id": 900328151,
    "message": {
        "message_id": 16,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1777802816,
        "text": "Ke919"
    }
}
[2026-05-03 13:06:57] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-03 13:06:57] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-03 13:06:57] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-03 13:06:57] [helpers.php:979]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-03 13:06:57] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:06:57] [helpers.php:1207]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-03 13:06:57] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:06:57] [helpers.php:1207]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-03 13:06:57] [telegram.php:627]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-03 13:06:57] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:06:57] [helpers.php:1088]             ✅ API key is active
[2026-05-03 13:06:57] [validator_api.php:286]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-03 13:06:57] [validator_api.php:329]        Using validator API URL: http://87.110.183.186:5004/api/validator/ (Protocol: http)
[2026-05-03 13:06:57] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:06:57] [helpers.php:947]              ✅ Found UID for API key: HIP_01
[2026-05-03 13:06:57] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:06:57] [helpers.php:1207]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-03 13:06:57] [validator_api.php:56]         🔍 Making API request to: http://87.110.183.186:5004/api/validator/validate
[2026-05-03 13:06:57] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"KE919","UID":"HIP_01","PartnerID":2}
[2026-05-03 13:06:57] [validator_api.php:368]        No certificate file found for subdomain: SEMARAH
[2026-05-03 13:06:57] [validator_api.php:56]         ❌ API request failed: file_get_contents(http://87.110.183.186:5004/api/validator/validate): Failed to open stream: Connection refused
[2026-05-03 13:06:57] [telegram.php:627]             ❌ ERROR: Validation request failed
[2026-05-03 13:06:57] [awaiting_car_number.php:236]  Sending message content: ❌   Ошибка подключения к сервису проверки номеров.Пожалуйста, попробуйте позже или свяжитесь со службой сервисной поддержки.
[2026-05-03 13:06:57] [awaiting_car_number.php:236]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 13:06:57] [awaiting_car_number.php:236]  Message sent successfully (ID: 17)
[2026-05-03 13:06:57] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-03 13:06:57] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 13:06:57] [awaiting_car_number.php:240]  Message sent successfully (ID: 18)
[2026-05-03 13:16:12] [unknown:?]                     
[2026-05-03 13:16:12] [unknown:?]                    =======================  New message =======================
[2026-05-03 13:16:12] [unknown:?]                    Data: {
    "update_id": 900328152,
    "message": {
        "message_id": 19,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1777803372,
        "text": "Ke919"
    }
}
[2026-05-03 13:16:12] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-03 13:16:12] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-03 13:16:12] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-03 13:16:12] [helpers.php:979]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-03 13:16:12] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:16:12] [helpers.php:1207]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-03 13:16:12] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:16:12] [helpers.php:1207]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-03 13:16:12] [telegram.php:627]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-03 13:16:12] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:16:12] [helpers.php:1088]             ✅ API key is active
[2026-05-03 13:16:12] [validator_api.php:286]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-03 13:16:12] [validator_api.php:329]        Using validator API URL: http://87.110.183.186:5004/api/validator/ (Protocol: http)
[2026-05-03 13:16:12] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:16:12] [helpers.php:947]              ✅ Found UID for API key: HIP_01
[2026-05-03 13:16:12] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:16:12] [helpers.php:1207]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-03 13:16:12] [validator_api.php:56]         🔍 Making API request to: http://87.110.183.186:5004/api/validator/validate
[2026-05-03 13:16:12] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"KE919","UID":"HIP_01","PartnerID":2}
[2026-05-03 13:16:12] [validator_api.php:368]        No certificate file found for subdomain: SEMARAH
[2026-05-03 13:16:12] [validator_api.php:56]         ❌ API request failed: file_get_contents(http://87.110.183.186:5004/api/validator/validate): Failed to open stream: Connection refused
[2026-05-03 13:16:12] [telegram.php:627]             ❌ ERROR: Validation request failed
[2026-05-03 13:16:12] [awaiting_car_number.php:236]  Sending message content: ❌   Ошибка подключения к сервису проверки номеров.Пожалуйста, попробуйте позже или свяжитесь со службой сервисной поддержки.
[2026-05-03 13:16:12] [awaiting_car_number.php:236]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 13:16:12] [awaiting_car_number.php:236]  Message sent successfully (ID: 20)
[2026-05-03 13:16:12] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-03 13:16:12] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 13:16:13] [awaiting_car_number.php:240]  Message sent successfully (ID: 21)
[2026-05-03 13:22:31] [unknown:?]                     
[2026-05-03 13:22:31] [unknown:?]                    =======================  New message =======================
[2026-05-03 13:22:31] [unknown:?]                    Data: {
    "update_id": 900328153,
    "message": {
        "message_id": 22,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1777803751,
        "text": "Ke919"
    }
}
[2026-05-03 13:22:31] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-03 13:22:31] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-03 13:22:31] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-03 13:22:31] [helpers.php:979]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-03 13:22:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:22:31] [helpers.php:1207]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-03 13:22:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:22:31] [helpers.php:1207]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-03 13:22:31] [telegram.php:627]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-03 13:22:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:22:31] [helpers.php:1088]             ✅ API key is active
[2026-05-03 13:22:31] [validator_api.php:286]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-03 13:22:31] [validator_api.php:329]        Using validator API URL: https://87.110.183.186:5003/api/validator/ (Protocol: https)
[2026-05-03 13:22:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:22:31] [helpers.php:947]              ✅ Found UID for API key: HIP_01
[2026-05-03 13:22:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 13:22:31] [helpers.php:1207]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-03 13:22:31] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:5003/api/validator/validate
[2026-05-03 13:22:31] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"KE919","UID":"HIP_01","PartnerID":2}
[2026-05-03 13:22:31] [validator_api.php:368]        No certificate file found for subdomain: SEMARAH
[2026-05-03 13:22:31] [validator_api.php:56]         External HTTPS connection - SSL verification disabled (no certificate found)
[2026-05-03 13:22:31] [validator_api.php:56]         ❌ API request failed: file_get_contents(https://87.110.183.186:5003/api/validator/validate): Failed to open stream: Connection refused
[2026-05-03 13:22:31] [telegram.php:627]             ❌ ERROR: Validation request failed
[2026-05-03 13:22:31] [awaiting_car_number.php:236]  Sending message content: ❌   Ошибка подключения к сервису проверки номеров.Пожалуйста, попробуйте позже или свяжитесь со службой сервисной поддержки.
[2026-05-03 13:22:31] [awaiting_car_number.php:236]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 13:22:32] [awaiting_car_number.php:236]  Message sent successfully (ID: 23)
[2026-05-03 13:22:32] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-03 13:22:32] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 13:22:32] [awaiting_car_number.php:240]  Message sent successfully (ID: 24)
[2026-05-03 15:09:01] [unknown:?]                     
[2026-05-03 15:09:01] [unknown:?]                    =======================  New message =======================
[2026-05-03 15:09:01] [unknown:?]                    Data: {
    "update_id": 900328154,
    "message": {
        "message_id": 25,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1777810141,
        "text": "Ke919"
    }
}
[2026-05-03 15:09:01] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-03 15:09:01] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-03 15:09:01] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-03 15:09:01] [helpers.php:979]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-03 15:09:01] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 15:09:01] [helpers.php:1207]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-03 15:09:01] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 15:09:01] [helpers.php:1207]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-03 15:09:01] [telegram.php:627]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-03 15:09:01] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 15:09:01] [helpers.php:1088]             ✅ API key is active
[2026-05-03 15:09:01] [validator_api.php:286]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-03 15:09:01] [validator_api.php:329]        Using validator API URL: https://87.110.183.186:5003/api/validator/ (Protocol: https)
[2026-05-03 15:09:01] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 15:09:01] [helpers.php:947]              ✅ Found UID for API key: HIP_01
[2026-05-03 15:09:01] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-03 15:09:01] [helpers.php:1207]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-03 15:09:01] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:5003/api/validator/validate
[2026-05-03 15:09:01] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"KE919","UID":"HIP_01","PartnerID":2}
[2026-05-03 15:09:01] [validator_api.php:368]        No certificate file found for subdomain: SEMARAH
[2026-05-03 15:09:01] [validator_api.php:56]         External HTTPS connection - SSL verification disabled (no certificate found)
[2026-05-03 15:09:01] [validator_api.php:56]         ❌ API request failed: file_get_contents(https://87.110.183.186:5003/api/validator/validate): Failed to open stream: Connection refused
[2026-05-03 15:09:01] [telegram.php:627]             ❌ ERROR: Validation request failed
[2026-05-03 15:09:01] [awaiting_car_number.php:236]  Sending message content: ❌   Ошибка подключения к сервису проверки номеров.Пожалуйста, попробуйте позже или свяжитесь со службой сервисной поддержки.
[2026-05-03 15:09:01] [awaiting_car_number.php:236]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 15:09:02] [awaiting_car_number.php:236]  Message sent successfully (ID: 26)
[2026-05-03 15:09:02] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-03 15:09:02] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-03 15:09:02] [awaiting_car_number.php:240]  Message sent successfully (ID: 27)
[2026-05-07 13:46:25] [unknown:?]                     
[2026-05-07 13:46:25] [unknown:?]                    =======================  New message =======================
[2026-05-07 13:46:25] [unknown:?]                    Data: {
    "update_id": 900328155,
    "message": {
        "message_id": 28,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1778150785,
        "text": "Ke919"
    }
}
[2026-05-07 13:46:25] [session.php:177]              ⚠️ MySQL provider enabled, but DB credentials are incomplete.
[2026-05-07 13:46:25] [session.php:106]              ❌ MySQL-only mode: getObjectCodeForChat failed because DB connection is unavailable
[2026-05-07 13:46:25] [helpers.php:411]              ❌ MySQL-only mode: getObjectCodeForChat failed because DB connection is unavailable
[2026-05-07 13:46:25] [unknown:?]                    Telegram context source: missing
[2026-05-07 13:46:25] [unknown:?]                    ❌ Telegram token context is missing for this update. Skipping processing.
[2026-05-07 14:01:13] [unknown:?]                     
[2026-05-07 14:01:13] [unknown:?]                    =======================  New message =======================
[2026-05-07 14:01:13] [unknown:?]                    Data: {
    "update_id": 900328156,
    "message": {
        "message_id": 29,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1778151673,
        "text": "Ke919"
    }
}
[2026-05-07 14:01:13] [session.php:177]              ⚠️ MySQL provider enabled, but DB credentials are incomplete.
[2026-05-07 14:01:13] [session.php:106]              ❌ MySQL-only mode: getObjectCodeForChat failed because DB connection is unavailable
[2026-05-07 14:01:13] [helpers.php:411]              ❌ MySQL-only mode: getObjectCodeForChat failed because DB connection is unavailable
[2026-05-07 14:01:13] [unknown:?]                    Telegram context source: missing
[2026-05-07 14:01:13] [unknown:?]                    ❌ Telegram token context is missing for this update. Skipping processing.
[2026-05-07 14:06:53] [Command line code:1]          ⚠️ MySQL provider enabled, but DB credentials are incomplete.
[2026-05-07 14:11:45] [unknown:?]                     
[2026-05-07 14:11:45] [unknown:?]                    =======================  New message =======================
[2026-05-07 14:11:45] [unknown:?]                    Data: {
    "update_id": 900328157,
    "message": {
        "message_id": 30,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1778152305,
        "text": "Ke919"
    }
}
[2026-05-07 14:11:45] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-07 14:11:45] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-07 14:11:45] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-07 14:11:45] [helpers.php:979]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-07 14:11:45] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 14:11:45] [helpers.php:1207]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-07 14:11:45] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 14:11:45] [helpers.php:1207]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-07 14:11:45] [telegram.php:627]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-07 14:11:45] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 14:11:45] [helpers.php:1088]             ✅ API key is active
[2026-05-07 14:11:45] [validator_api.php:286]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-07 14:11:45] [validator_api.php:329]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-07 14:11:45] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 14:11:45] [helpers.php:947]              ✅ Found UID for API key: HIP_01
[2026-05-07 14:11:45] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 14:11:45] [helpers.php:1207]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-07 14:11:45] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-07 14:11:45] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"KE919","UID":"HIP_01","PartnerID":2}
[2026-05-07 14:11:45] [validator_api.php:368]        No certificate file found for subdomain: SEMARAH
[2026-05-07 14:11:45] [validator_api.php:56]         External HTTPS connection - SSL verification disabled (no certificate found)
[2026-05-07 14:12:00] [validator_api.php:56]         ❌ API request failed: file_get_contents(https://87.110.183.186:443/api/validator/validate): Failed to open stream: Connection timed out
[2026-05-07 14:12:00] [telegram.php:627]             ❌ ERROR: Validation request failed
[2026-05-07 14:12:00] [awaiting_car_number.php:236]  Sending message content: ❌   Ошибка подключения к сервису проверки номеров.Пожалуйста, попробуйте позже или свяжитесь со службой сервисной поддержки.
[2026-05-07 14:12:00] [awaiting_car_number.php:236]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-07 14:12:00] [awaiting_car_number.php:236]  Message sent successfully (ID: 31)
[2026-05-07 14:12:00] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-07 14:12:00] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-07 14:12:01] [awaiting_car_number.php:240]  Message sent successfully (ID: 32)
[2026-05-07 14:22:07] [Command line code:1]          ⚠️ MySQL provider enabled, but DB credentials are incomplete.
[2026-05-07 14:24:19] [Command line code:1]          ⚠️ MySQL provider enabled, but DB credentials are incomplete.
[2026-05-07 14:28:27] [unknown:?]                     
[2026-05-07 14:28:27] [unknown:?]                    =======================  New message =======================
[2026-05-07 14:28:27] [unknown:?]                    Data: {
    "update_id": 900328158,
    "message": {
        "message_id": 33,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1778153306,
        "text": "Ke919"
    }
}
[2026-05-07 14:28:27] [session.php:177]              ⚠️ MySQL connection failed (1045): Access denied for user 'hiparklv_tga_admin_user'@'localhost' (using password: YES).
[2026-05-07 14:28:27] [session.php:106]              ❌ MySQL-only mode: getObjectCodeForChat failed because DB connection is unavailable
[2026-05-07 14:28:27] [helpers.php:411]              ❌ MySQL-only mode: getObjectCodeForChat failed because DB connection is unavailable
[2026-05-07 14:28:27] [unknown:?]                    Telegram context source: missing
[2026-05-07 14:28:27] [unknown:?]                    ❌ Telegram token context is missing for this update. Skipping processing.
[2026-05-07 14:59:18] [Command line code:1]          ⚠️ MySQL connection failed (1045): Access denied for user 'hiparklv_tga_admin_user'@'localhost' (using password: YES).
[2026-05-07 15:00:28] [Command line code:1]          ⚠️ MySQL connection failed (1045): Access denied for user 'hiparklv_tga_admin_user'@'localhost' (using password: YES).
[2026-05-07 15:09:09] [unknown:?]                     
[2026-05-07 15:09:09] [unknown:?]                    =======================  New message =======================
[2026-05-07 15:09:09] [unknown:?]                    Data: {
    "update_id": 900328159,
    "message": {
        "message_id": 34,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1778155748,
        "text": "Ke919"
    }
}
[2026-05-07 15:09:09] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-07 15:09:09] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-07 15:09:09] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-07 15:09:09] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-07 15:09:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:09:09] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-07 15:09:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:09:09] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-07 15:09:09] [telegram.php:628]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-07 15:09:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:09:09] [helpers.php:1089]             ✅ API key is active
[2026-05-07 15:09:09] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-07 15:09:09] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-07 15:09:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:09:09] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-07 15:09:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:09:09] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-07 15:09:09] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-07 15:09:09] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"KE919","UID":"HIP_01","PartnerID":2}
[2026-05-07 15:09:09] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-07 15:09:24] [validator_api.php:56]         timeout: file_get_contents(https://87.110.183.186:443/api/validator/validate): Failed to open stream: Connection timed out
[2026-05-07 15:09:24] [telegram.php:628]             ❌ ERROR: Validation request failed
[2026-05-07 15:09:24] [awaiting_car_number.php:236]  Sending message content: ❌   Ошибка подключения к сервису проверки номеров.Пожалуйста, попробуйте позже или свяжитесь со службой сервисной поддержки.
[2026-05-07 15:09:24] [awaiting_car_number.php:236]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-07 15:09:24] [awaiting_car_number.php:236]  Message sent successfully (ID: 35)
[2026-05-07 15:09:24] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-07 15:09:24] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-07 15:09:24] [awaiting_car_number.php:240]  Message sent successfully (ID: 36)
[2026-05-07 15:10:29] [unknown:?]                     
[2026-05-07 15:10:29] [unknown:?]                    =======================  New message =======================
[2026-05-07 15:10:29] [unknown:?]                    Data: {
    "update_id": 900328160,
    "message": {
        "message_id": 37,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1778155829,
        "text": "Ke919"
    }
}
[2026-05-07 15:10:29] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-07 15:10:29] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-07 15:10:29] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-07 15:10:29] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-07 15:10:29] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:10:29] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-07 15:10:29] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:10:29] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-07 15:10:29] [telegram.php:628]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-07 15:10:29] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:10:29] [helpers.php:1089]             ✅ API key is active
[2026-05-07 15:10:29] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-07 15:10:29] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-07 15:10:29] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:10:29] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-07 15:10:29] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:10:29] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-07 15:10:29] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-07 15:10:29] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"KE919","UID":"HIP_01","PartnerID":2}
[2026-05-07 15:10:29] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-07 15:10:44] [validator_api.php:56]         timeout: file_get_contents(https://87.110.183.186:443/api/validator/validate): Failed to open stream: Connection timed out
[2026-05-07 15:10:44] [telegram.php:628]             ❌ ERROR: Validation request failed
[2026-05-07 15:10:44] [awaiting_car_number.php:236]  Sending message content: ❌   Ошибка подключения к сервису проверки номеров.Пожалуйста, попробуйте позже или свяжитесь со службой сервисной поддержки.
[2026-05-07 15:10:44] [awaiting_car_number.php:236]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-07 15:10:45] [awaiting_car_number.php:236]  Message sent successfully (ID: 38)
[2026-05-07 15:10:45] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-07 15:10:45] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-07 15:10:45] [awaiting_car_number.php:240]  Message sent successfully (ID: 39)
[2026-05-07 15:25:28] [unknown:?]                     
[2026-05-07 15:25:28] [unknown:?]                    =======================  New message =======================
[2026-05-07 15:25:28] [unknown:?]                    Data: {
    "update_id": 900328161,
    "message": {
        "message_id": 40,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1778156727,
        "text": "Ke919"
    }
}
[2026-05-07 15:25:28] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-07 15:25:28] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-07 15:25:28] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-07 15:25:28] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-07 15:25:28] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:25:28] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-07 15:25:28] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:25:28] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-07 15:25:28] [telegram.php:628]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-07 15:25:28] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:25:28] [helpers.php:1089]             ✅ API key is active
[2026-05-07 15:25:28] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-07 15:25:28] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-07 15:25:28] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:25:28] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-07 15:25:28] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:25:28] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-07 15:25:28] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-07 15:25:28] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"KE919","UID":"HIP_01","PartnerID":2}
[2026-05-07 15:25:28] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-07 15:25:43] [validator_api.php:56]         timeout: file_get_contents(https://87.110.183.186:443/api/validator/validate): Failed to open stream: Connection timed out
[2026-05-07 15:25:43] [telegram.php:628]             ❌ ERROR: Validation request failed
[2026-05-07 15:25:43] [awaiting_car_number.php:236]  Sending message content: ❌   Ошибка подключения к сервису проверки номеров.Пожалуйста, попробуйте позже или свяжитесь со службой сервисной поддержки.
[2026-05-07 15:25:43] [awaiting_car_number.php:236]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-07 15:25:43] [awaiting_car_number.php:236]  Message sent successfully (ID: 41)
[2026-05-07 15:25:43] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-07 15:25:43] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-07 15:25:43] [awaiting_car_number.php:240]  Message sent successfully (ID: 42)
[2026-05-07 15:39:05] [unknown:?]                     
[2026-05-07 15:39:05] [unknown:?]                    =======================  New message =======================
[2026-05-07 15:39:05] [unknown:?]                    Data: {
    "update_id": 900328162,
    "message": {
        "message_id": 43,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1778157544,
        "text": "Ke919"
    }
}
[2026-05-07 15:39:05] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-07 15:39:05] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-07 15:39:05] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-07 15:39:05] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-07 15:39:05] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:39:05] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-07 15:39:05] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:39:05] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-07 15:39:05] [telegram.php:628]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-07 15:39:05] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:39:05] [helpers.php:1089]             ✅ API key is active
[2026-05-07 15:39:05] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-07 15:39:05] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-07 15:39:05] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:39:05] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-07 15:39:05] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:39:05] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-07 15:39:05] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-07 15:39:05] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"KE919","UID":"HIP_01","PartnerID":2}
[2026-05-07 15:39:05] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-07 15:39:05] [validator_api.php:56]         ❌ API request failed: file_get_contents(https://87.110.183.186:443/api/validator/validate): Failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized

[2026-05-07 15:39:05] [telegram.php:628]             ❌ ERROR: Validation request failed
[2026-05-07 15:39:05] [awaiting_car_number.php:236]  Sending message content: ❌   Ошибка подключения к сервису проверки номеров.Пожалуйста, попробуйте позже или свяжитесь со службой сервисной поддержки.
[2026-05-07 15:39:05] [awaiting_car_number.php:236]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-07 15:39:05] [awaiting_car_number.php:236]  Message sent successfully (ID: 44)
[2026-05-07 15:39:05] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-07 15:39:05] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-07 15:39:05] [awaiting_car_number.php:240]  Message sent successfully (ID: 45)
[2026-05-07 15:43:02] [unknown:?]                     
[2026-05-07 15:43:02] [unknown:?]                    =======================  New message =======================
[2026-05-07 15:43:02] [unknown:?]                    Data: {
    "update_id": 900328163,
    "message": {
        "message_id": 46,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1778157782,
        "text": "Ke919"
    }
}
[2026-05-07 15:43:02] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-07 15:43:02] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-07 15:43:02] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-07 15:43:02] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-07 15:43:02] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:43:02] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-07 15:43:02] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:43:02] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-07 15:43:02] [telegram.php:628]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-07 15:43:02] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:43:02] [helpers.php:1089]             ✅ API key is active
[2026-05-07 15:43:02] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-07 15:43:02] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-07 15:43:02] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:43:02] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-07 15:43:02] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:43:02] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-07 15:43:02] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-07 15:43:02] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"KE919","UID":"HIP_01","PartnerID":2}
[2026-05-07 15:43:02] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-07 15:43:02] [validator_api.php:56]         ❌ API request failed: file_get_contents(https://87.110.183.186:443/api/validator/validate): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

[2026-05-07 15:43:02] [telegram.php:628]             ❌ ERROR: Validation request failed
[2026-05-07 15:43:02] [awaiting_car_number.php:236]  Sending message content: ❌   Ошибка подключения к сервису проверки номеров.Пожалуйста, попробуйте позже или свяжитесь со службой сервисной поддержки.
[2026-05-07 15:43:02] [awaiting_car_number.php:236]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-07 15:43:03] [awaiting_car_number.php:236]  Message sent successfully (ID: 47)
[2026-05-07 15:43:03] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-07 15:43:03] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-07 15:43:03] [awaiting_car_number.php:240]  Message sent successfully (ID: 48)
[2026-05-07 15:47:49] [unknown:?]                     
[2026-05-07 15:47:49] [unknown:?]                    =======================  New message =======================
[2026-05-07 15:47:49] [unknown:?]                    Data: {
    "update_id": 900328164,
    "message": {
        "message_id": 49,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1778158068,
        "text": "Ke919"
    }
}
[2026-05-07 15:47:49] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-07 15:47:49] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-07 15:47:49] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-07 15:47:49] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-07 15:47:49] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:47:49] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-07 15:47:49] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:47:49] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-07 15:47:49] [telegram.php:628]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-07 15:47:49] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:47:49] [helpers.php:1089]             ✅ API key is active
[2026-05-07 15:47:49] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-07 15:47:49] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-07 15:47:49] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:47:49] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-07 15:47:49] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:47:49] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-07 15:47:49] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-07 15:47:49] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"KE919","UID":"HIP_01","PartnerID":2}
[2026-05-07 15:47:49] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-07 15:47:49] [validator_api.php:56]         API Response Code: 200
[2026-05-07 15:47:49] [validator_api.php:56]         API Response: {"Present":false,"VehicleInfo":null,"ErrorDescription":"Plate not found in parking"}
[2026-05-07 15:47:49] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-07 15:47:49] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-07 15:47:49] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}}}
[2026-05-07 15:47:49] [helpers.php:1165]             ✅ Found PublicGroupID in direct format: 0
[2026-05-07 15:47:49] [validator_api.php:74]         ✅ Found PublicGroupID: 0 for API key. Adding to response.
[2026-05-07 15:47:49] [awaiting_car_number.php:220]  ❌ Car number not found: KE919
[2026-05-07 15:47:49] [awaiting_car_number.php:221]  Sending message content: ❌   Автомобиль *KE919* НЕ найден на парковке Semarah Hotel Lielupe.
[2026-05-07 15:47:49] [awaiting_car_number.php:221]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-07 15:47:49] [awaiting_car_number.php:221]  Message sent successfully (ID: 50)
[2026-05-07 15:47:49] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-07 15:47:49] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-07 15:47:49] [awaiting_car_number.php:240]  Message sent successfully (ID: 51)
[2026-05-12 12:22:13] [unknown:?]                     
[2026-05-12 12:22:13] [unknown:?]                    =======================  New message =======================
[2026-05-12 12:22:13] [unknown:?]                    Data: {
    "update_id": 900328165,
    "message": {
        "message_id": 52,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1778577733,
        "text": "Gg654"
    }
}
[2026-05-12 12:22:13] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-12 12:22:13] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-12 12:22:13] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-12 12:22:13] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-12 12:22:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-12 12:22:14] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-12 12:22:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-12 12:22:14] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-12 12:22:14] [telegram.php:628]             🚗 Validating car number: GG654 for SEMARAH
[2026-05-12 12:22:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-12 12:22:14] [helpers.php:1089]             ✅ API key is active
[2026-05-12 12:22:14] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-12 12:22:14] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-12 12:22:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-12 12:22:14] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-12 12:22:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-12 12:22:14] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-12 12:22:14] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-12 12:22:14] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"GG654","UID":"HIP_01","PartnerID":2}
[2026-05-12 12:22:14] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-12 12:22:14] [validator_api.php:56]         API Response Code: 200
[2026-05-12 12:22:14] [validator_api.php:56]         API Response: {"Present":false,"VehicleInfo":null,"ErrorDescription":"Plate not found in parking"}
[2026-05-12 12:22:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-12 12:22:14] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-12 12:22:14] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}}}
[2026-05-12 12:22:14] [helpers.php:1165]             ✅ Found PublicGroupID in direct format: 0
[2026-05-12 12:22:14] [validator_api.php:74]         ✅ Found PublicGroupID: 0 for API key. Adding to response.
[2026-05-12 12:22:14] [awaiting_car_number.php:220]  ❌ Car number not found: GG654
[2026-05-12 12:22:14] [awaiting_car_number.php:221]  Sending message content: ❌   Автомобиль *GG654* НЕ найден на парковке Semarah Hotel Lielupe.
[2026-05-12 12:22:14] [awaiting_car_number.php:221]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-12 12:22:14] [awaiting_car_number.php:221]  Message sent successfully (ID: 53)
[2026-05-12 12:22:14] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-12 12:22:14] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-12 12:22:14] [awaiting_car_number.php:240]  Message sent successfully (ID: 54)
[2026-05-20 14:55:59] [unknown:?]                     
[2026-05-20 14:55:59] [unknown:?]                    =======================  New message =======================
[2026-05-20 14:55:59] [unknown:?]                    Data: {
    "update_id": 900328166,
    "message": {
        "message_id": 55,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1779278159,
        "text": "Ko9876"
    }
}
[2026-05-20 14:55:59] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-20 14:55:59] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-20 14:55:59] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-20 14:55:59] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-20 14:55:59] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-20 14:55:59] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-20 14:55:59] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-20 14:55:59] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-20 14:55:59] [telegram.php:628]             🚗 Validating car number: KO9876 for SEMARAH
[2026-05-20 14:55:59] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-20 14:55:59] [helpers.php:1089]             ✅ API key is active
[2026-05-20 14:55:59] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-20 14:55:59] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-20 14:55:59] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-20 14:55:59] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-20 14:55:59] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-20 14:55:59] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-20 14:55:59] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-20 14:55:59] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"KO9876","UID":"HIP_01","PartnerID":2}
[2026-05-20 14:55:59] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-20 14:56:00] [validator_api.php:56]         API Response Code: 200
[2026-05-20 14:56:00] [validator_api.php:56]         API Response: {"Present":false,"VehicleInfo":null,"ErrorDescription":"Plate not found in parking"}
[2026-05-20 14:56:00] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-20 14:56:00] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-20 14:56:00] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}}}
[2026-05-20 14:56:00] [helpers.php:1165]             ✅ Found PublicGroupID in direct format: 0
[2026-05-20 14:56:00] [validator_api.php:74]         ✅ Found PublicGroupID: 0 for API key. Adding to response.
[2026-05-20 14:56:00] [awaiting_car_number.php:220]  ❌ Car number not found: KO9876
[2026-05-20 14:56:00] [awaiting_car_number.php:221]  Sending message content: ❌   Автомобиль *KO9876* НЕ найден на парковке Semarah Hotel Lielupe.
[2026-05-20 14:56:00] [awaiting_car_number.php:221]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-20 14:56:00] [awaiting_car_number.php:221]  Message sent successfully (ID: 56)
[2026-05-20 14:56:00] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-20 14:56:00] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-20 14:56:00] [awaiting_car_number.php:240]  Message sent successfully (ID: 57)
[2026-05-26 18:32:52] [unknown:?]                     
[2026-05-26 18:32:52] [unknown:?]                    =======================  New message =======================
[2026-05-26 18:32:52] [unknown:?]                    Data: {
    "update_id": 900328167,
    "message": {
        "message_id": 58,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1779809571,
        "text": "Ed9948"
    }
}
[2026-05-26 18:32:52] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-26 18:32:52] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-26 18:32:52] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-26 18:32:52] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-26 18:32:52] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-26 18:32:52] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-26 18:32:52] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-26 18:32:52] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-26 18:32:52] [telegram.php:628]             🚗 Validating car number: ED9948 for SEMARAH
[2026-05-26 18:32:52] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-26 18:32:52] [helpers.php:1089]             ✅ API key is active
[2026-05-26 18:32:52] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-26 18:32:52] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-26 18:32:52] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-26 18:32:52] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-26 18:32:52] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-26 18:32:52] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-26 18:32:52] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-26 18:32:52] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"ED9948","UID":"HIP_01","PartnerID":2}
[2026-05-26 18:32:52] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-26 18:32:55] [validator_api.php:56]         ❌ API request failed: file_get_contents(https://87.110.183.186:443/api/validator/validate): Failed to open stream: No route to host
[2026-05-26 18:32:55] [telegram.php:628]             ❌ ERROR: Validation request failed
[2026-05-26 18:32:55] [awaiting_car_number.php:236]  Sending message content: ❌   Ошибка подключения к сервису проверки номеров.Пожалуйста, попробуйте позже или свяжитесь со службой сервисной поддержки.
[2026-05-26 18:32:55] [awaiting_car_number.php:236]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-26 18:32:55] [awaiting_car_number.php:236]  Message sent successfully (ID: 59)
[2026-05-26 18:32:55] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-26 18:32:55] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-26 18:32:56] [awaiting_car_number.php:240]  Message sent successfully (ID: 60)
[2026-05-27 08:57:34] [unknown:?]                     
[2026-05-27 08:57:34] [unknown:?]                    =======================  New message =======================
[2026-05-27 08:57:34] [unknown:?]                    Data: {
    "update_id": 900328168,
    "message": {
        "message_id": 61,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1779861454,
        "text": "Ke919"
    }
}
[2026-05-27 08:57:34] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 08:57:34] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 08:57:34] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 08:57:34] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 08:57:34] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 08:57:34] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-27 08:57:34] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 08:57:34] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 08:57:34] [telegram.php:628]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-27 08:57:34] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 08:57:34] [helpers.php:1089]             ✅ API key is active
[2026-05-27 08:57:34] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 08:57:34] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 08:57:34] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 08:57:34] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-27 08:57:34] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 08:57:34] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 08:57:34] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 08:57:34] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"KE919","UID":"HIP_01","PartnerID":2}
[2026-05-27 08:57:34] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 08:57:35] [validator_api.php:56]         API Response Code: 200
[2026-05-27 08:57:35] [validator_api.php:56]         API Response: {"Present":false,"VehicleInfo":null,"ErrorDescription":"Plate not found in parking"}
[2026-05-27 08:57:35] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 08:57:35] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 08:57:35] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}}}
[2026-05-27 08:57:35] [helpers.php:1165]             ✅ Found PublicGroupID in direct format: 0
[2026-05-27 08:57:35] [validator_api.php:74]         ✅ Found PublicGroupID: 0 for API key. Adding to response.
[2026-05-27 08:57:35] [awaiting_car_number.php:220]  ❌ Car number not found: KE919
[2026-05-27 08:57:35] [awaiting_car_number.php:221]  Sending message content: ❌   Автомобиль *KE919* НЕ найден на парковке Semarah Hotel Lielupe.
[2026-05-27 08:57:35] [awaiting_car_number.php:221]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 08:57:35] [awaiting_car_number.php:221]  Message sent successfully (ID: 62)
[2026-05-27 08:57:35] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-27 08:57:35] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 08:57:35] [awaiting_car_number.php:240]  Message sent successfully (ID: 63)
[2026-05-27 10:28:05] [unknown:?]                     
[2026-05-27 10:28:05] [unknown:?]                    =======================  New message =======================
[2026-05-27 10:28:05] [unknown:?]                    Data: {
    "update_id": 900328169,
    "message": {
        "message_id": 64,
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8433225764,
            "type": "private"
        },
        "date": 1779866885,
        "text": "\/start",
        "entities": [
            {
                "offset": 0,
                "length": 6,
                "type": "bot_command"
            }
        ]
    }
}
[2026-05-27 10:28:05] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 10:28:05] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 10:28:05] [unknown:?]                    Setting initial user language to: en
[2026-05-27 10:28:05] [telegram.php:194]             ⚠️ object_code is missing or invalid in session data
[2026-05-27 10:28:05] [telegram.php:206]             Sending message content: Lūdzu izvēlieties valodu / Please select your language / Выберите язык:
[2026-05-27 10:28:05] [telegram.php:206]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 10:28:06] [telegram.php:206]             Message sent successfully (ID: 65)
[2026-05-27 10:28:09] [unknown:?]                     
[2026-05-27 10:28:09] [unknown:?]                    =======================  New message =======================
[2026-05-27 10:28:09] [unknown:?]                    Data: {
    "update_id": 900328170,
    "callback_query": {
        "id": "8550312747467669200",
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "first_name": "Reception",
            "language_code": "en"
        },
        "message": {
            "message_id": 65,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 8433225764,
                "first_name": "Reception",
                "type": "private"
            },
            "date": 1779866886,
            "text": "Lūdzu izvēlieties valodu \/ Please select your language \/ Выберите язык:",
            "reply_markup": {
                "inline_keyboard": [
                    [
                        {
                            "text": "🇱🇻 Latviešu",
                            "callback_data": "lv"
                        },
                        {
                            "text": "🇬🇧 English",
                            "callback_data": "en"
                        },
                        {
                            "text": "🇷🇺 Русский",
                            "callback_data": "ru"
                        }
                    ]
                ]
            }
        },
        "chat_instance": "-9130294041758187780",
        "data": "lv"
    }
}
[2026-05-27 10:28:09] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 10:28:09] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 10:28:09] [telegram.php:120]             Saved temporary language: lv for chat_id: 8433225764
[2026-05-27 10:28:09] [unknown:?]                    Language selected via callback: lv
[2026-05-27 10:28:09] [unknown:?]                    🔄 Processing callback query: lv
[2026-05-27 10:28:09] [telegram.php:250]             Saved temporary language: lv for chat_id: 8433225764
[2026-05-27 10:28:09] [telegram.php:254]             ⚠️ object_code is missing or invalid in session data
[2026-05-27 10:28:09] [telegram.php:257]             Answering callback query: 8550312747467669200
[2026-05-27 10:28:09] [telegram.php:260]             Sending message content: 🌍   Valoda ir mainīta uz latviešu
[2026-05-27 10:28:09] [telegram.php:260]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 10:28:10] [telegram.php:260]             Message sent successfully (ID: 66)
[2026-05-27 10:28:10] [telegram.php:263]             Sending message content: Lūdzu, ievadiet objekta kodu:
[2026-05-27 10:28:10] [telegram.php:263]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 10:28:10] [telegram.php:263]             Message sent successfully (ID: 67)
[2026-05-27 10:28:20] [unknown:?]                     
[2026-05-27 10:28:20] [unknown:?]                    =======================  New message =======================
[2026-05-27 10:28:20] [unknown:?]                    Data: {
    "update_id": 900328171,
    "message": {
        "message_id": 68,
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8433225764,
            "type": "private"
        },
        "date": 1779866900,
        "text": "260501"
    }
}
[2026-05-27 10:28:20] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 10:28:20] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 10:28:20] [telegram.php:126]             Loaded temporary language: lv for chat_id: 8433225764
[2026-05-27 10:28:20] [unknown:?]                    Using saved language preference: lv
[2026-05-27 10:28:20] [unknown:?]                    User entered object code: 260501
[2026-05-27 10:28:20] [telegram.php:555]             Sending message content: ❌   Nederīgs objekta kods. Lūdzu, mēģiniet vēlreiz.
[2026-05-27 10:28:20] [telegram.php:555]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 10:28:20] [telegram.php:555]             Message sent successfully (ID: 69)
[2026-05-27 10:28:20] [unknown:?]                    ❌ Invalid object code entered: 260501
[2026-05-27 10:29:10] [unknown:?]                     
[2026-05-27 10:29:10] [unknown:?]                    =======================  New message =======================
[2026-05-27 10:29:10] [unknown:?]                    Data: {
    "update_id": 900328172,
    "message": {
        "message_id": 70,
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8433225764,
            "type": "private"
        },
        "date": 1779866949,
        "text": "SEM260501"
    }
}
[2026-05-27 10:29:10] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 10:29:10] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 10:29:10] [telegram.php:126]             Loaded temporary language: lv for chat_id: 8433225764
[2026-05-27 10:29:10] [unknown:?]                    Using saved language preference: lv
[2026-05-27 10:29:10] [unknown:?]                    User entered object code: SEM260501
[2026-05-27 10:29:10] [helpers.php:308]              🔐 Telegram token context set (entered_object_code)
[2026-05-27 10:29:10] [telegram.php:567]             ✅ Saved object code: SEM260501
[2026-05-27 10:29:10] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 10:29:10] [telegram.php:579]             Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️ℹ️   Lūdzu, nosūtiet savu tālruņa numuru, izmantojot zemāk esošo pogu.
[2026-05-27 10:29:10] [telegram.php:579]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 10:29:10] [telegram.php:579]             Message sent successfully (ID: 71)
[2026-05-27 10:29:10] [unknown:?]                    Stored keyboard message ID in session: 71
[2026-05-27 10:29:10] [telegram.php:591]             Deleted temporary language file for chat_id: 8433225764
[2026-05-27 10:29:25] [unknown:?]                     
[2026-05-27 10:29:25] [unknown:?]                    =======================  New message =======================
[2026-05-27 10:29:25] [unknown:?]                    Data: {
    "update_id": 900328173,
    "message": {
        "message_id": 72,
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8433225764,
            "type": "private"
        },
        "date": 1779866965,
        "text": "Ke919"
    }
}
[2026-05-27 10:29:25] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 10:29:25] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 10:29:25] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 10:29:25] [telegram.php:624]             ⚠️ Manual phone entry detected. Ignoring and requesting to use the button.
[2026-05-27 10:29:25] [awaiting_phone.php:153]       Deleting message: 71
[2026-05-27 10:29:25] [awaiting_phone.php:153]       ℹ️ Message deleted successfully
[2026-05-27 10:29:25] [telegram.php:624]             Deleted old keyboard message: 71
[2026-05-27 10:29:25] [awaiting_phone.php:158]       Sending message content: ℹ️   Lūdzu, nosūtiet savu tālruņa numuru, izmantojot zemāk esošo pogu:
[2026-05-27 10:29:25] [awaiting_phone.php:158]       Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 10:29:26] [awaiting_phone.php:158]       Message sent successfully (ID: 73)
[2026-05-27 10:29:26] [telegram.php:624]             Updated keyboard message ID in session: 73
[2026-05-27 10:29:37] [unknown:?]                     
[2026-05-27 10:29:37] [unknown:?]                    =======================  New message =======================
[2026-05-27 10:29:37] [unknown:?]                    Data: {
    "update_id": 900328174,
    "message": {
        "message_id": 74,
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8433225764,
            "type": "private"
        },
        "date": 1779866977,
        "contact": {
            "phone_number": "37126108593",
            "first_name": "Reception",
            "user_id": 8433225764
        }
    }
}
[2026-05-27 10:29:37] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 10:29:37] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 10:29:37] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 10:29:37] [telegram.php:624]             Processing phone number: 37126108593 for object: SEM260501
[2026-05-27 10:29:37] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 10:29:37] [telegram.php:624]             Cleaned phone number: 37126108593
[2026-05-27 10:29:37] [telegram.php:624]             Comparing: User phone '37126108593' with API phone '37129275774' or '29275774'
[2026-05-27 10:29:37] [awaiting_phone.php:62]        Sending message content: ❌   Jūsu tālruņa numurs nav reģistrēts šim objektam.
[2026-05-27 10:29:37] [awaiting_phone.php:62]        Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 10:29:37] [awaiting_phone.php:62]        Message sent successfully (ID: 75)
[2026-05-27 10:29:37] [telegram.php:624]             ⚠️ Phone not registered: 37126108593
[2026-05-27 10:30:07] [unknown:?]                     
[2026-05-27 10:30:07] [unknown:?]                    =======================  New message =======================
[2026-05-27 10:30:07] [unknown:?]                    Data: {
    "update_id": 900328175,
    "message": {
        "message_id": 76,
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8433225764,
            "type": "private"
        },
        "date": 1779867007,
        "contact": {
            "phone_number": "37126108593",
            "first_name": "Reception",
            "user_id": 8433225764
        }
    }
}
[2026-05-27 10:30:07] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 10:30:07] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 10:30:07] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 10:30:07] [telegram.php:624]             Processing phone number: 37126108593 for object: SEM260501
[2026-05-27 10:30:07] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 10:30:07] [telegram.php:624]             Cleaned phone number: 37126108593
[2026-05-27 10:30:07] [telegram.php:624]             Comparing: User phone '37126108593' with API phone '37129275774' or '29275774'
[2026-05-27 10:30:07] [awaiting_phone.php:62]        Sending message content: ❌   Jūsu tālruņa numurs nav reģistrēts šim objektam.
[2026-05-27 10:30:07] [awaiting_phone.php:62]        Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 10:30:08] [awaiting_phone.php:62]        Message sent successfully (ID: 77)
[2026-05-27 10:30:08] [telegram.php:624]             ⚠️ Phone not registered: 37126108593
[2026-05-27 10:30:36] [unknown:?]                     
[2026-05-27 10:30:36] [unknown:?]                    =======================  New message =======================
[2026-05-27 10:30:36] [unknown:?]                    Data: {
    "update_id": 900328176,
    "message": {
        "message_id": 78,
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8433225764,
            "type": "private"
        },
        "date": 1779867036,
        "text": "37126108593"
    }
}
[2026-05-27 10:30:36] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 10:30:36] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 10:30:36] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 10:30:36] [telegram.php:624]             ⚠️ Manual phone entry detected. Ignoring and requesting to use the button.
[2026-05-27 10:30:36] [awaiting_phone.php:153]       Deleting message: 73
[2026-05-27 10:30:36] [awaiting_phone.php:153]       ℹ️ Message deleted successfully
[2026-05-27 10:30:36] [telegram.php:624]             Deleted old keyboard message: 73
[2026-05-27 10:30:36] [awaiting_phone.php:158]       Sending message content: ℹ️   Lūdzu, nosūtiet savu tālruņa numuru, izmantojot zemāk esošo pogu:
[2026-05-27 10:30:36] [awaiting_phone.php:158]       Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 10:30:37] [awaiting_phone.php:158]       Message sent successfully (ID: 79)
[2026-05-27 10:30:37] [telegram.php:624]             Updated keyboard message ID in session: 79
[2026-05-27 10:30:49] [unknown:?]                     
[2026-05-27 10:30:49] [unknown:?]                    =======================  New message =======================
[2026-05-27 10:30:49] [unknown:?]                    Data: {
    "update_id": 900328177,
    "message": {
        "message_id": 80,
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8433225764,
            "type": "private"
        },
        "date": 1779867049,
        "contact": {
            "phone_number": "37126108593",
            "first_name": "Reception",
            "user_id": 8433225764
        }
    }
}
[2026-05-27 10:30:49] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 10:30:49] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 10:30:49] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 10:30:49] [telegram.php:624]             Processing phone number: 37126108593 for object: SEM260501
[2026-05-27 10:30:49] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 10:30:49] [telegram.php:624]             Cleaned phone number: 37126108593
[2026-05-27 10:30:49] [telegram.php:624]             Comparing: User phone '37126108593' with API phone '37129275774' or '29275774'
[2026-05-27 10:30:49] [awaiting_phone.php:62]        Sending message content: ❌   Jūsu tālruņa numurs nav reģistrēts šim objektam.
[2026-05-27 10:30:49] [awaiting_phone.php:62]        Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 10:30:49] [awaiting_phone.php:62]        Message sent successfully (ID: 81)
[2026-05-27 10:30:49] [telegram.php:624]             ⚠️ Phone not registered: 37126108593
[2026-05-27 11:31:48] [unknown:?]                     
[2026-05-27 11:31:48] [unknown:?]                    =======================  New message =======================
[2026-05-27 11:31:48] [unknown:?]                    Data: {
    "update_id": 900328178,
    "message": {
        "message_id": 82,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1779870708,
        "text": "Ke5432"
    }
}
[2026-05-27 11:31:48] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 11:31:48] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 11:31:48] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 11:31:48] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 11:31:48] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 11:31:48] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-27 11:31:48] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 11:31:48] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 11:31:48] [telegram.php:628]             🚗 Validating car number: KE5432 for SEMARAH
[2026-05-27 11:31:48] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 11:31:48] [helpers.php:1089]             ✅ API key is active
[2026-05-27 11:31:48] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 11:31:48] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 11:31:48] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 11:31:48] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-27 11:31:48] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 11:31:48] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 11:31:48] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 11:31:48] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"KE5432","UID":"HIP_01","PartnerID":2}
[2026-05-27 11:31:48] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 11:31:49] [validator_api.php:56]         API Response Code: 200
[2026-05-27 11:31:49] [validator_api.php:56]         API Response: {"Present":false,"VehicleInfo":null,"ErrorDescription":"Plate not found in parking"}
[2026-05-27 11:31:49] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 11:31:49] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 11:31:49] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 11:31:49] [helpers.php:1165]             ✅ Found PublicGroupID in direct format: 0
[2026-05-27 11:31:49] [validator_api.php:74]         ✅ Found PublicGroupID: 0 for API key. Adding to response.
[2026-05-27 11:31:49] [awaiting_car_number.php:220]  ❌ Car number not found: KE5432
[2026-05-27 11:31:49] [awaiting_car_number.php:221]  Sending message content: ❌   Автомобиль *KE5432* НЕ найден на парковке Semarah Hotel Lielupe.
[2026-05-27 11:31:49] [awaiting_car_number.php:221]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 11:31:49] [awaiting_car_number.php:221]  Message sent successfully (ID: 83)
[2026-05-27 11:31:49] [awaiting_car_number.php:240]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-27 11:31:49] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 11:31:49] [awaiting_car_number.php:240]  Message sent successfully (ID: 84)
[2026-05-27 11:37:49] [unknown:?]                     
[2026-05-27 11:37:49] [unknown:?]                    =======================  New message =======================
[2026-05-27 11:37:49] [unknown:?]                    Data: {
    "update_id": 900328179,
    "message": {
        "message_id": 85,
        "from": {
            "id": 1741321266,
            "is_bot": false,
            "language_code": "ru"
        },
        "chat": {
            "id": 1741321266,
            "username": "AleksaZagorodnova",
            "type": "private"
        },
        "date": 1779871068,
        "text": "\/start",
        "entities": [
            {
                "offset": 0,
                "length": 6,
                "type": "bot_command"
            }
        ]
    }
}
[2026-05-27 11:37:49] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 11:37:49] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 11:37:49] [unknown:?]                    Setting initial user language to: ru
[2026-05-27 11:37:49] [telegram.php:194]             ⚠️ object_code is missing or invalid in session data
[2026-05-27 11:37:49] [telegram.php:206]             Sending message content: Lūdzu izvēlieties valodu / Please select your language / Выберите язык:
[2026-05-27 11:37:49] [telegram.php:206]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 11:37:49] [telegram.php:206]             Message sent successfully (ID: 86)
[2026-05-27 11:37:53] [unknown:?]                     
[2026-05-27 11:37:53] [unknown:?]                    =======================  New message =======================
[2026-05-27 11:37:53] [unknown:?]                    Data: {
    "update_id": 900328180,
    "callback_query": {
        "id": "7478917891013396012",
        "from": {
            "id": 1741321266,
            "is_bot": false,
            "first_name": "Александра",
            "username": "AleksaZagorodnova",
            "language_code": "ru"
        },
        "message": {
            "message_id": 86,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 1741321266,
                "first_name": "Александра",
                "username": "AleksaZagorodnova",
                "type": "private"
            },
            "date": 1779871069,
            "text": "Lūdzu izvēlieties valodu \/ Please select your language \/ Выберите язык:",
            "reply_markup": {
                "inline_keyboard": [
                    [
                        {
                            "text": "🇱🇻 Latviešu",
                            "callback_data": "lv"
                        },
                        {
                            "text": "🇬🇧 English",
                            "callback_data": "en"
                        },
                        {
                            "text": "🇷🇺 Русский",
                            "callback_data": "ru"
                        }
                    ]
                ]
            }
        },
        "chat_instance": "-8379170348014978099",
        "data": "lv"
    }
}
[2026-05-27 11:37:53] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 11:37:53] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 11:37:53] [telegram.php:120]             Saved temporary language: lv for chat_id: 1741321266
[2026-05-27 11:37:53] [unknown:?]                    Language selected via callback: lv
[2026-05-27 11:37:53] [unknown:?]                    🔄 Processing callback query: lv
[2026-05-27 11:37:53] [telegram.php:250]             Saved temporary language: lv for chat_id: 1741321266
[2026-05-27 11:37:53] [telegram.php:254]             ⚠️ object_code is missing or invalid in session data
[2026-05-27 11:37:53] [telegram.php:257]             Answering callback query: 7478917891013396012
[2026-05-27 11:37:53] [telegram.php:260]             Sending message content: 🌍   Valoda ir mainīta uz latviešu
[2026-05-27 11:37:53] [telegram.php:260]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 11:37:53] [telegram.php:260]             Message sent successfully (ID: 87)
[2026-05-27 11:37:53] [telegram.php:263]             Sending message content: Lūdzu, ievadiet objekta kodu:
[2026-05-27 11:37:53] [telegram.php:263]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 11:37:53] [telegram.php:263]             Message sent successfully (ID: 88)
[2026-05-27 11:38:14] [unknown:?]                     
[2026-05-27 11:38:14] [unknown:?]                    =======================  New message =======================
[2026-05-27 11:38:14] [unknown:?]                    Data: {
    "update_id": 900328181,
    "message": {
        "message_id": 89,
        "from": {
            "id": 1741321266,
            "is_bot": false,
            "language_code": "ru"
        },
        "chat": {
            "id": 1741321266,
            "username": "AleksaZagorodnova",
            "type": "private"
        },
        "date": 1779871094,
        "text": "SEM260501"
    }
}
[2026-05-27 11:38:14] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 11:38:14] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 11:38:14] [telegram.php:126]             Loaded temporary language: lv for chat_id: 1741321266
[2026-05-27 11:38:14] [unknown:?]                    Using saved language preference: lv
[2026-05-27 11:38:14] [unknown:?]                    User entered object code: SEM260501
[2026-05-27 11:38:14] [helpers.php:308]              🔐 Telegram token context set (entered_object_code)
[2026-05-27 11:38:14] [telegram.php:567]             ✅ Saved object code: SEM260501
[2026-05-27 11:38:14] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 11:38:14] [telegram.php:579]             Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️ℹ️   Lūdzu, nosūtiet savu tālruņa numuru, izmantojot zemāk esošo pogu.
[2026-05-27 11:38:14] [telegram.php:579]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 11:38:14] [telegram.php:579]             Message sent successfully (ID: 90)
[2026-05-27 11:38:14] [unknown:?]                    Stored keyboard message ID in session: 90
[2026-05-27 11:38:14] [telegram.php:591]             Deleted temporary language file for chat_id: 1741321266
[2026-05-27 11:38:21] [unknown:?]                     
[2026-05-27 11:38:21] [unknown:?]                    =======================  New message =======================
[2026-05-27 11:38:21] [unknown:?]                    Data: {
    "update_id": 900328182,
    "message": {
        "message_id": 91,
        "from": {
            "id": 1741321266,
            "is_bot": false,
            "language_code": "ru"
        },
        "chat": {
            "id": 1741321266,
            "username": "AleksaZagorodnova",
            "type": "private"
        },
        "date": 1779871101,
        "reply_to_message": {
            "message_id": 90,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 1741321266,
                "first_name": "Александра",
                "username": "AleksaZagorodnova",
                "type": "private"
            },
            "date": 1779871094,
            "text": "🅿️   Semarah Hotel Lielupe   🅿️\n\nℹ️   Lūdzu, nosūtiet savu tālruņa numuru, izmantojot zemāk esošo pogu."
        },
        "contact": {
            "phone_number": "37126416073",
            "first_name": "Александра",
            "user_id": 1741321266
        }
    }
}
[2026-05-27 11:38:21] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 11:38:21] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 11:38:21] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 11:38:21] [telegram.php:624]             Processing phone number: 37126416073 for object: SEM260501
[2026-05-27 11:38:21] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 11:38:21] [telegram.php:624]             Cleaned phone number: 37126416073
[2026-05-27 11:38:21] [telegram.php:624]             Comparing: User phone '37126416073' with API phone '37129275774' or '29275774'
[2026-05-27 11:38:21] [telegram.php:624]             Comparing: User phone '37126416073' with API phone '37126539902' or '26539902'
[2026-05-27 11:38:21] [telegram.php:624]             Comparing: User phone '37126416073' with API phone '37128722751' or '28722751'
[2026-05-27 11:38:21] [telegram.php:624]             Comparing: User phone '37126416073' with API phone '37126108593' or '26108593'
[2026-05-27 11:38:21] [telegram.php:624]             Comparing: User phone '37126416073' with API phone '37122453528' or '22453528'
[2026-05-27 11:38:21] [telegram.php:624]             Comparing: User phone '37126416073' with API phone '37126416073' or '26416073'
[2026-05-27 11:38:21] [awaiting_phone.php:55]        ✅ Phone number match found with key: 637613dd2168a3bbb5092394db603ef5aacd9bc9e7def3c6
[2026-05-27 11:38:21] [awaiting_phone.php:88]        ✅ Phone verified for SEMARAH with API key: 637613dd2168a3bbb5092394db603ef5aacd9bc9e7def3c6
[2026-05-27 11:38:21] [awaiting_phone.php:97]        Deleting message: 90
[2026-05-27 11:38:22] [awaiting_phone.php:97]        ℹ️ Message deleted successfully
[2026-05-27 11:38:22] [telegram.php:624]             Deleted keyboard message from session: 90
[2026-05-27 11:38:22] [helpers.php:587]              Sending message content: ✅   Tālruņa numurs ir verificēts!
[2026-05-27 11:38:22] [awaiting_phone.php:115]       Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 11:38:22] [awaiting_phone.php:115]       Message sent successfully (ID: 92)
[2026-05-27 11:38:22] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 11:38:22] [awaiting_phone.php:139]       Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Ievadiet automašīnas numuru:
[2026-05-27 11:38:22] [awaiting_phone.php:139]       Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 11:38:22] [awaiting_phone.php:139]       Message sent successfully (ID: 93)
[2026-05-27 12:56:35] [unknown:?]                     
[2026-05-27 12:56:35] [unknown:?]                    =======================  New message =======================
[2026-05-27 12:56:35] [unknown:?]                    Data: {
    "update_id": 900328183,
    "message": {
        "message_id": 94,
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8433225764,
            "type": "private"
        },
        "date": 1779875794,
        "contact": {
            "phone_number": "37126108593",
            "first_name": "Reception",
            "user_id": 8433225764
        }
    }
}
[2026-05-27 12:56:35] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 12:56:35] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 12:56:35] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 12:56:35] [telegram.php:624]             Processing phone number: 37126108593 for object: SEM260501
[2026-05-27 12:56:35] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:56:35] [telegram.php:624]             Cleaned phone number: 37126108593
[2026-05-27 12:56:35] [telegram.php:624]             Comparing: User phone '37126108593' with API phone '37129275774' or '29275774'
[2026-05-27 12:56:35] [telegram.php:624]             Comparing: User phone '37126108593' with API phone '37126539902' or '26539902'
[2026-05-27 12:56:35] [telegram.php:624]             Comparing: User phone '37126108593' with API phone '37128722751' or '28722751'
[2026-05-27 12:56:35] [telegram.php:624]             Comparing: User phone '37126108593' with API phone '37126108593' or '26108593'
[2026-05-27 12:56:35] [awaiting_phone.php:55]        ✅ Phone number match found with key: 843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92
[2026-05-27 12:56:35] [awaiting_phone.php:88]        ✅ Phone verified for SEMARAH with API key: 843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92
[2026-05-27 12:56:35] [awaiting_phone.php:97]        Deleting message: 79
[2026-05-27 12:56:35] [awaiting_phone.php:97]        ℹ️ Message deleted successfully
[2026-05-27 12:56:35] [telegram.php:624]             Deleted keyboard message from session: 79
[2026-05-27 12:56:35] [helpers.php:587]              Sending message content: ✅   Tālruņa numurs ir verificēts!
[2026-05-27 12:56:35] [awaiting_phone.php:115]       Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 12:56:35] [awaiting_phone.php:115]       Message sent successfully (ID: 95)
[2026-05-27 12:56:35] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 12:56:35] [awaiting_phone.php:139]       Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Ievadiet automašīnas numuru:
[2026-05-27 12:56:35] [awaiting_phone.php:139]       Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 12:56:36] [awaiting_phone.php:139]       Message sent successfully (ID: 96)
[2026-05-27 12:57:18] [unknown:?]                     
[2026-05-27 12:57:18] [unknown:?]                    =======================  New message =======================
[2026-05-27 12:57:18] [unknown:?]                    Data: {
    "update_id": 900328184,
    "message": {
        "message_id": 97,
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8433225764,
            "type": "private"
        },
        "date": 1779875838,
        "text": "Ke919"
    }
}
[2026-05-27 12:57:18] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 12:57:18] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 12:57:18] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 12:57:18] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 12:57:18] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:57:18] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-27 12:57:18] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:57:18] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 12:57:18] [telegram.php:628]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-27 12:57:18] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:57:18] [helpers.php:1089]             ✅ API key is active
[2026-05-27 12:57:18] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 12:57:18] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 12:57:18] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:57:18] [helpers.php:948]              ✅ Found UID for API key: SEM_03
[2026-05-27 12:57:18] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:57:18] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 12:57:18] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 12:57:18] [validator_api.php:56]         With payload: {"API_KEY":"843b****************************************cf92","PlateNumber":"KE919","UID":"SEM_03","PartnerID":2}
[2026-05-27 12:57:18] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 12:57:19] [validator_api.php:56]         API Response Code: 200
[2026-05-27 12:57:19] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"KE919","CheckInTimeStamp":"20260527T125247+03:00","CurrentFee":"0","NextTimeSlice":"20260527T130747+03:00","ClientGroup":"2","CurrentTid":"2","BadgeState":"VALID"},"ErrorDescription":null}
[2026-05-27 12:57:19] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:57:19] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 12:57:19] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 12:57:19] [validator_api.php:70]         ❌ PublicGroupID not found for API key: 843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92
[2026-05-27 12:57:19] [awaiting_car_number.php:121]  ✅ Car number validated successfully: KE919
[2026-05-27 12:57:19] [awaiting_car_number.php:134]  Sending message content: 🚗   *KE919    (G2 : T2)  🟩*🕒   Iebraukšana: *2026-05-27 12:52*💰   Pašreizējā maksa: *€0.00*
[2026-05-27 12:57:19] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 12:57:19] [awaiting_car_number.php:134]  Message sent successfully (ID: 98)
[2026-05-27 12:57:19] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:57:19] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 12:57:19] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 12:57:19] [awaiting_car_number.php:153]  ❌ PublicGroupID not found for API key: 843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92
[2026-05-27 12:57:19] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-27 12:57:19] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:57:19] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "true" for API key
[2026-05-27 12:57:19] [awaiting_car_number.php:163]  🚫 NoDiscountButtons flag is set for this API key - skipping discount buttons
[2026-05-27 12:57:19] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:57:19] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:57:19] [awaiting_car_number.php:169]  Checking PublicGroupID for 'Our Customer' button. public_group_id: null, plate_number: KE919
[2026-05-27 12:57:19] [awaiting_car_number.php:169]  ❌ Not adding 'Our Customer' button - PublicGroupID is null
[2026-05-27 12:57:19] [awaiting_car_number.php:208]  Sending message content: Izvēlieties atlaidi: *KE919*
[2026-05-27 12:57:19] [awaiting_car_number.php:208]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 12:57:19] [awaiting_car_number.php:208]  Message sent successfully (ID: 99)
[2026-05-27 12:57:54] [unknown:?]                     
[2026-05-27 12:57:54] [unknown:?]                    =======================  New message =======================
[2026-05-27 12:57:54] [unknown:?]                    Data: {
    "update_id": 900328185,
    "callback_query": {
        "id": "8550312747643382181",
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "first_name": "Reception",
            "language_code": "en"
        },
        "message": {
            "message_id": 99,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 8433225764,
                "first_name": "Reception",
                "type": "private"
            },
            "date": 1779875839,
            "text": "Izvēlieties atlaidi: KE919",
            "entities": [
                {
                    "offset": 21,
                    "length": 5,
                    "type": "bold"
                }
            ],
            "reply_markup": {
                "inline_keyboard": [
                    [
                        {
                            "text": "✓   SAMAZINĀTS TARIFS",
                            "callback_data": "discount|tariff|0"
                        }
                    ],
                    [
                        {
                            "text": "❌ ATCELT",
                            "callback_data": "cancel_discount"
                        }
                    ]
                ]
            }
        },
        "chat_instance": "-9130294041758187780",
        "data": "cancel_discount"
    }
}
[2026-05-27 12:57:54] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 12:57:54] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 12:57:54] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 12:57:54] [unknown:?]                    🔄 Processing callback query: cancel_discount
[2026-05-27 12:57:54] [telegram.php:420]             Deleting message: 99
[2026-05-27 12:57:54] [telegram.php:420]             ℹ️ Message deleted successfully
[2026-05-27 12:57:54] [telegram.php:423]             Answering callback query: 8550312747643382181
[2026-05-27 12:57:55] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 12:57:55] [telegram.php:427]             Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Ievadiet automašīnas numuru:
[2026-05-27 12:57:55] [telegram.php:427]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 12:57:55] [telegram.php:427]             Message sent successfully (ID: 100)
[2026-05-27 12:57:55] [unknown:?]                    User canceled discount selection
[2026-05-27 12:58:14] [unknown:?]                     
[2026-05-27 12:58:14] [unknown:?]                    =======================  New message =======================
[2026-05-27 12:58:14] [unknown:?]                    Data: {
    "update_id": 900328186,
    "message": {
        "message_id": 101,
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8433225764,
            "type": "private"
        },
        "date": 1779875894,
        "text": "Ki919"
    }
}
[2026-05-27 12:58:14] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 12:58:14] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 12:58:14] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 12:58:14] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 12:58:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:58:14] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-27 12:58:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:58:14] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 12:58:14] [telegram.php:628]             🚗 Validating car number: KI919 for SEMARAH
[2026-05-27 12:58:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:58:14] [helpers.php:1089]             ✅ API key is active
[2026-05-27 12:58:14] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 12:58:14] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 12:58:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:58:14] [helpers.php:948]              ✅ Found UID for API key: SEM_03
[2026-05-27 12:58:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:58:14] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 12:58:14] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 12:58:14] [validator_api.php:56]         With payload: {"API_KEY":"843b****************************************cf92","PlateNumber":"KI919","UID":"SEM_03","PartnerID":2}
[2026-05-27 12:58:14] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 12:58:14] [validator_api.php:56]         API Response Code: 200
[2026-05-27 12:58:14] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"KE919","CheckInTimeStamp":"20260527T125247+03:00","CurrentFee":"0","NextTimeSlice":"20260527T130747+03:00","ClientGroup":"2","CurrentTid":"2","BadgeState":"VALID"},"ErrorDescription":null}
[2026-05-27 12:58:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:58:14] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 12:58:14] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 12:58:14] [validator_api.php:70]         ❌ PublicGroupID not found for API key: 843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92
[2026-05-27 12:58:14] [awaiting_car_number.php:121]  ✅ Car number validated successfully: KI919
[2026-05-27 12:58:14] [awaiting_car_number.php:134]  Sending message content: 🚗   *KE919    (G2 : T2)  🟩*🕒   Iebraukšana: *2026-05-27 12:52*💰   Pašreizējā maksa: *€0.00*
[2026-05-27 12:58:14] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 12:58:14] [awaiting_car_number.php:134]  Message sent successfully (ID: 102)
[2026-05-27 12:58:14] [awaiting_car_number.php:138]  Sending message content: ➡️ Translation missing: plate_recognized: *KE919*
[2026-05-27 12:58:14] [awaiting_car_number.php:138]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 12:58:14] [awaiting_car_number.php:138]  ERROR: Failed to send message to Telegram
[2026-05-27 12:58:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:58:14] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 12:58:14] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 12:58:14] [awaiting_car_number.php:153]  ❌ PublicGroupID not found for API key: 843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92
[2026-05-27 12:58:14] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-27 12:58:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:58:14] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "true" for API key
[2026-05-27 12:58:14] [awaiting_car_number.php:163]  🚫 NoDiscountButtons flag is set for this API key - skipping discount buttons
[2026-05-27 12:58:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:58:14] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 12:58:14] [awaiting_car_number.php:169]  Checking PublicGroupID for 'Our Customer' button. public_group_id: null, plate_number: KE919
[2026-05-27 12:58:14] [awaiting_car_number.php:169]  ❌ Not adding 'Our Customer' button - PublicGroupID is null
[2026-05-27 12:58:14] [awaiting_car_number.php:208]  Sending message content: Izvēlieties atlaidi: *KE919*
[2026-05-27 12:58:14] [awaiting_car_number.php:208]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 12:58:15] [awaiting_car_number.php:208]  Message sent successfully (ID: 103)
[2026-05-27 12:58:43] [unknown:?]                     
[2026-05-27 12:58:43] [unknown:?]                    =======================  New message =======================
[2026-05-27 12:58:43] [unknown:?]                    Data: {
    "update_id": 900328187,
    "callback_query": {
        "id": "8550312746014014151",
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "first_name": "Reception",
            "language_code": "en"
        },
        "message": {
            "message_id": 103,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 8433225764,
                "first_name": "Reception",
                "type": "private"
            },
            "date": 1779875895,
            "text": "Izvēlieties atlaidi: KE919",
            "entities": [
                {
                    "offset": 21,
                    "length": 5,
                    "type": "bold"
                }
            ],
            "reply_markup": {
                "inline_keyboard": [
                    [
                        {
                            "text": "✓   SAMAZINĀTS TARIFS",
                            "callback_data": "discount|tariff|0"
                        }
                    ],
                    [
                        {
                            "text": "❌ ATCELT",
                            "callback_data": "cancel_discount"
                        }
                    ]
                ]
            }
        },
        "chat_instance": "-9130294041758187780",
        "data": "cancel_discount"
    }
}
[2026-05-27 12:58:43] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 12:58:43] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 12:58:43] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 12:58:43] [unknown:?]                    🔄 Processing callback query: cancel_discount
[2026-05-27 12:58:43] [telegram.php:420]             Deleting message: 103
[2026-05-27 12:58:43] [telegram.php:420]             ℹ️ Message deleted successfully
[2026-05-27 12:58:43] [telegram.php:423]             Answering callback query: 8550312746014014151
[2026-05-27 12:58:43] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 12:58:43] [telegram.php:427]             Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Ievadiet automašīnas numuru:
[2026-05-27 12:58:43] [telegram.php:427]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 12:58:43] [telegram.php:427]             Message sent successfully (ID: 104)
[2026-05-27 12:58:43] [unknown:?]                    User canceled discount selection
[2026-05-27 13:22:50] [unknown:?]                     
[2026-05-27 13:22:50] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:22:50] [unknown:?]                    Data: {
    "update_id": 900328188,
    "message": {
        "message_id": 105,
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8925429392,
            "type": "private"
        },
        "date": 1779877370,
        "text": "\/start",
        "entities": [
            {
                "offset": 0,
                "length": 6,
                "type": "bot_command"
            }
        ]
    }
}
[2026-05-27 13:22:50] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:22:50] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:22:50] [unknown:?]                    Setting initial user language to: en
[2026-05-27 13:22:50] [telegram.php:194]             ⚠️ object_code is missing or invalid in session data
[2026-05-27 13:22:50] [telegram.php:206]             Sending message content: Lūdzu izvēlieties valodu / Please select your language / Выберите язык:
[2026-05-27 13:22:50] [telegram.php:206]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:22:56] [telegram.php:206]             Message sent successfully (ID: 106)
[2026-05-27 13:23:16] [unknown:?]                     
[2026-05-27 13:23:16] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:23:16] [unknown:?]                    Data: {
    "update_id": 900328189,
    "callback_query": {
        "id": "1440939197313217649",
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "first_name": "Semarah",
            "last_name": "SPA",
            "language_code": "en"
        },
        "message": {
            "message_id": 106,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 8925429392,
                "first_name": "Semarah",
                "last_name": "SPA",
                "type": "private"
            },
            "date": 1779877375,
            "text": "Lūdzu izvēlieties valodu \/ Please select your language \/ Выберите язык:",
            "reply_markup": {
                "inline_keyboard": [
                    [
                        {
                            "text": "🇱🇻 Latviešu",
                            "callback_data": "lv"
                        },
                        {
                            "text": "🇬🇧 English",
                            "callback_data": "en"
                        },
                        {
                            "text": "🇷🇺 Русский",
                            "callback_data": "ru"
                        }
                    ]
                ]
            }
        },
        "chat_instance": "-6059999772737737528",
        "data": "en"
    }
}
[2026-05-27 13:23:16] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:23:16] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:23:16] [telegram.php:120]             Saved temporary language: en for chat_id: 8925429392
[2026-05-27 13:23:16] [unknown:?]                    Language selected via callback: en
[2026-05-27 13:23:16] [unknown:?]                    🔄 Processing callback query: en
[2026-05-27 13:23:16] [telegram.php:250]             Saved temporary language: en for chat_id: 8925429392
[2026-05-27 13:23:16] [telegram.php:254]             ⚠️ object_code is missing or invalid in session data
[2026-05-27 13:23:16] [telegram.php:257]             Answering callback query: 1440939197313217649
[2026-05-27 13:23:16] [telegram.php:260]             Sending message content: 🌍   Language set to English
[2026-05-27 13:23:16] [telegram.php:260]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:23:17] [telegram.php:260]             Message sent successfully (ID: 107)
[2026-05-27 13:23:17] [telegram.php:263]             Sending message content: Please enter your object code:
[2026-05-27 13:23:17] [telegram.php:263]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:23:17] [telegram.php:263]             Message sent successfully (ID: 108)
[2026-05-27 13:23:29] [unknown:?]                     
[2026-05-27 13:23:29] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:23:29] [unknown:?]                    Data: {
    "update_id": 900328190,
    "message": {
        "message_id": 109,
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8925429392,
            "type": "private"
        },
        "date": 1779877409,
        "text": "SEM260501"
    }
}
[2026-05-27 13:23:29] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:23:29] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:23:29] [telegram.php:126]             Loaded temporary language: en for chat_id: 8925429392
[2026-05-27 13:23:29] [unknown:?]                    Using saved language preference: en
[2026-05-27 13:23:29] [unknown:?]                    User entered object code: SEM260501
[2026-05-27 13:23:29] [telegram.php:544]             Loaded temporary language: en for chat_id: 8925429392
[2026-05-27 13:23:29] [unknown:?]                    Restored language from temporary storage: en for object code input
[2026-05-27 13:23:29] [helpers.php:308]              🔐 Telegram token context set (entered_object_code)
[2026-05-27 13:23:29] [telegram.php:567]             ✅ Saved object code: SEM260501
[2026-05-27 13:23:29] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 13:23:29] [telegram.php:579]             Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️ℹ️   Please send your phone number pressing the button below.
[2026-05-27 13:23:29] [telegram.php:579]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:23:29] [telegram.php:579]             Message sent successfully (ID: 110)
[2026-05-27 13:23:29] [unknown:?]                    Stored keyboard message ID in session: 110
[2026-05-27 13:23:29] [telegram.php:591]             Deleted temporary language file for chat_id: 8925429392
[2026-05-27 13:23:33] [unknown:?]                     
[2026-05-27 13:23:33] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:23:33] [unknown:?]                    Data: {
    "update_id": 900328191,
    "message": {
        "message_id": 111,
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8925429392,
            "type": "private"
        },
        "date": 1779877413,
        "reply_to_message": {
            "message_id": 110,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 8925429392,
                "first_name": "Semarah",
                "last_name": "SPA",
                "type": "private"
            },
            "date": 1779877409,
            "text": "🅿️   Semarah Hotel Lielupe   🅿️\n\nℹ️   Please send your phone number pressing the button below."
        },
        "contact": {
            "phone_number": "37126539902",
            "first_name": "Semarah",
            "last_name": "SPA",
            "user_id": 8925429392
        }
    }
}
[2026-05-27 13:23:33] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:23:33] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 13:23:33] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:23:33] [telegram.php:624]             Processing phone number: 37126539902 for object: SEM260501
[2026-05-27 13:23:33] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:23:33] [telegram.php:624]             Cleaned phone number: 37126539902
[2026-05-27 13:23:33] [telegram.php:624]             Comparing: User phone '37126539902' with API phone '37129275774' or '29275774'
[2026-05-27 13:23:33] [telegram.php:624]             Comparing: User phone '37126539902' with API phone '37126539902' or '26539902'
[2026-05-27 13:23:33] [awaiting_phone.php:55]        ✅ Phone number match found with key: e1257a2dfb1c30ad279f722552d85340f43f503578a62b38
[2026-05-27 13:23:33] [awaiting_phone.php:88]        ✅ Phone verified for SEMARAH with API key: e1257a2dfb1c30ad279f722552d85340f43f503578a62b38
[2026-05-27 13:23:33] [awaiting_phone.php:97]        Deleting message: 110
[2026-05-27 13:23:33] [awaiting_phone.php:97]        ℹ️ Message deleted successfully
[2026-05-27 13:23:33] [telegram.php:624]             Deleted keyboard message from session: 110
[2026-05-27 13:23:33] [helpers.php:587]              Sending message content: ✅   Phone number is verified!
[2026-05-27 13:23:33] [awaiting_phone.php:115]       Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:23:33] [awaiting_phone.php:115]       Message sent successfully (ID: 112)
[2026-05-27 13:23:33] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 13:23:33] [awaiting_phone.php:139]       Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Enter a license plate:
[2026-05-27 13:23:33] [awaiting_phone.php:139]       Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:23:34] [awaiting_phone.php:139]       Message sent successfully (ID: 113)
[2026-05-27 13:24:02] [unknown:?]                     
[2026-05-27 13:24:02] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:24:02] [unknown:?]                    Data: {
    "update_id": 900328192,
    "message": {
        "message_id": 114,
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8925429392,
            "type": "private"
        },
        "date": 1779877442,
        "text": "\/start",
        "entities": [
            {
                "offset": 0,
                "length": 6,
                "type": "bot_command"
            }
        ]
    }
}
[2026-05-27 13:24:02] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:24:02] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 13:24:02] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:24:02] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:24:02] [helpers.php:1089]             ✅ API key is active
[2026-05-27 13:24:02] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 13:24:02] [telegram.php:189]             Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Enter a license plate:
[2026-05-27 13:24:02] [telegram.php:189]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:24:02] [telegram.php:189]             Message sent successfully (ID: 115)
[2026-05-27 13:28:05] [unknown:?]                     
[2026-05-27 13:28:05] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:28:05] [unknown:?]                    Data: {
    "update_id": 900328193,
    "message": {
        "message_id": 116,
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8925429392,
            "type": "private"
        },
        "date": 1779877684,
        "text": "KE919"
    }
}
[2026-05-27 13:28:05] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:28:05] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 13:28:05] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:28:05] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 13:28:05] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:28:05] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-27 13:28:05] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:28:05] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-27 13:28:05] [telegram.php:628]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-27 13:28:05] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:28:05] [helpers.php:1089]             ✅ API key is active
[2026-05-27 13:28:05] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 13:28:05] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 13:28:05] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:28:05] [helpers.php:948]              ✅ Found UID for API key: SEM_01
[2026-05-27 13:28:05] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:28:05] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-27 13:28:05] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 13:28:05] [validator_api.php:56]         With payload: {"API_KEY":"e125****************************************2b38","PlateNumber":"KE919","UID":"SEM_01","PartnerID":0}
[2026-05-27 13:28:05] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 13:28:05] [validator_api.php:56]         API Response Code: 200
[2026-05-27 13:28:05] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"KE919","CheckInTimeStamp":"20260527T125247+03:00","CurrentFee":"0","NextTimeSlice":"20260528T125247+03:00","ClientGroup":"2","CurrentTid":"2","BadgeState":"VALID"},"ErrorDescription":null}
[2026-05-27 13:28:05] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:28:05] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 13:28:05] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 13:28:05] [validator_api.php:70]         ❌ PublicGroupID not found for API key: e1257a2dfb1c30ad279f722552d85340f43f503578a62b38
[2026-05-27 13:28:05] [awaiting_car_number.php:121]  ✅ Car number validated successfully: KE919
[2026-05-27 13:28:05] [awaiting_car_number.php:134]  Sending message content: 🚗   *KE919    (G2 : T2)  🟩*🕒   Check-in: *2026-05-27 12:52*💰   Current fee: *€0.00*
[2026-05-27 13:28:05] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:28:05] [awaiting_car_number.php:134]  Message sent successfully (ID: 117)
[2026-05-27 13:28:05] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:28:05] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 13:28:05] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 13:28:05] [awaiting_car_number.php:153]  ❌ PublicGroupID not found for API key: e1257a2dfb1c30ad279f722552d85340f43f503578a62b38
[2026-05-27 13:28:05] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-27 13:28:05] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:28:05] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "true" for API key
[2026-05-27 13:28:05] [awaiting_car_number.php:163]  🚫 NoDiscountButtons flag is set for this API key - skipping discount buttons
[2026-05-27 13:28:05] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:28:05] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:28:05] [awaiting_car_number.php:169]  Checking PublicGroupID for 'Our Customer' button. public_group_id: null, plate_number: KE919
[2026-05-27 13:28:05] [awaiting_car_number.php:169]  ❌ Not adding 'Our Customer' button - PublicGroupID is null
[2026-05-27 13:28:05] [awaiting_car_number.php:208]  Sending message content: Select a discount: *KE919*
[2026-05-27 13:28:05] [awaiting_car_number.php:208]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:28:05] [awaiting_car_number.php:208]  Message sent successfully (ID: 118)
[2026-05-27 13:28:19] [unknown:?]                     
[2026-05-27 13:28:19] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:28:19] [unknown:?]                    Data: {
    "update_id": 900328194,
    "callback_query": {
        "id": "1440939196042942990",
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "first_name": "Semarah",
            "last_name": "SPA",
            "language_code": "en"
        },
        "message": {
            "message_id": 118,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 8925429392,
                "first_name": "Semarah",
                "last_name": "SPA",
                "type": "private"
            },
            "date": 1779877685,
            "text": "Select a discount: KE919",
            "entities": [
                {
                    "offset": 19,
                    "length": 5,
                    "type": "bold"
                }
            ],
            "reply_markup": {
                "inline_keyboard": [
                    [
                        {
                            "text": "✓   APPLY REDUCED TARIFF",
                            "callback_data": "discount|tariff|0"
                        }
                    ],
                    [
                        {
                            "text": "❌ CANCEL",
                            "callback_data": "cancel_discount"
                        }
                    ]
                ]
            }
        },
        "chat_instance": "-6059999772737737528",
        "data": "cancel_discount"
    }
}
[2026-05-27 13:28:19] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:28:19] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 13:28:19] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:28:19] [unknown:?]                    🔄 Processing callback query: cancel_discount
[2026-05-27 13:28:19] [telegram.php:420]             Deleting message: 118
[2026-05-27 13:28:19] [telegram.php:420]             ℹ️ Message deleted successfully
[2026-05-27 13:28:19] [telegram.php:423]             Answering callback query: 1440939196042942990
[2026-05-27 13:28:19] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 13:28:19] [telegram.php:427]             Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Enter a license plate:
[2026-05-27 13:28:19] [telegram.php:427]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:28:19] [telegram.php:427]             Message sent successfully (ID: 119)
[2026-05-27 13:28:19] [unknown:?]                    User canceled discount selection
[2026-05-27 13:37:09] [unknown:?]                     
[2026-05-27 13:37:09] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:37:09] [unknown:?]                    Data: {
    "update_id": 900328195,
    "message": {
        "message_id": 120,
        "from": {
            "id": 8758879400,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8758879400,
            "type": "private"
        },
        "date": 1779878228,
        "text": "\/start",
        "entities": [
            {
                "offset": 0,
                "length": 6,
                "type": "bot_command"
            }
        ]
    }
}
[2026-05-27 13:37:09] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:37:09] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:37:09] [unknown:?]                    Setting initial user language to: en
[2026-05-27 13:37:09] [telegram.php:194]             ⚠️ object_code is missing or invalid in session data
[2026-05-27 13:37:09] [telegram.php:206]             Sending message content: Lūdzu izvēlieties valodu / Please select your language / Выберите язык:
[2026-05-27 13:37:09] [telegram.php:206]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:37:09] [telegram.php:206]             Message sent successfully (ID: 121)
[2026-05-27 13:37:11] [unknown:?]                     
[2026-05-27 13:37:11] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:37:11] [unknown:?]                    Data: {
    "update_id": 900328196,
    "callback_query": {
        "id": "725612426131088493",
        "from": {
            "id": 8758879400,
            "is_bot": false,
            "first_name": "Ilona",
            "last_name": "Roga",
            "language_code": "en"
        },
        "message": {
            "message_id": 121,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 8758879400,
                "first_name": "Ilona",
                "last_name": "Roga",
                "type": "private"
            },
            "date": 1779878229,
            "text": "Lūdzu izvēlieties valodu \/ Please select your language \/ Выберите язык:",
            "reply_markup": {
                "inline_keyboard": [
                    [
                        {
                            "text": "🇱🇻 Latviešu",
                            "callback_data": "lv"
                        },
                        {
                            "text": "🇬🇧 English",
                            "callback_data": "en"
                        },
                        {
                            "text": "🇷🇺 Русский",
                            "callback_data": "ru"
                        }
                    ]
                ]
            }
        },
        "chat_instance": "-7273467379205632657",
        "data": "lv"
    }
}
[2026-05-27 13:37:11] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:37:11] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:37:11] [telegram.php:120]             Saved temporary language: lv for chat_id: 8758879400
[2026-05-27 13:37:11] [unknown:?]                    Language selected via callback: lv
[2026-05-27 13:37:11] [unknown:?]                    🔄 Processing callback query: lv
[2026-05-27 13:37:11] [telegram.php:250]             Saved temporary language: lv for chat_id: 8758879400
[2026-05-27 13:37:11] [telegram.php:254]             ⚠️ object_code is missing or invalid in session data
[2026-05-27 13:37:11] [telegram.php:257]             Answering callback query: 725612426131088493
[2026-05-27 13:37:11] [telegram.php:260]             Sending message content: 🌍   Valoda ir mainīta uz latviešu
[2026-05-27 13:37:11] [telegram.php:260]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:37:11] [telegram.php:260]             Message sent successfully (ID: 122)
[2026-05-27 13:37:11] [telegram.php:263]             Sending message content: Lūdzu, ievadiet objekta kodu:
[2026-05-27 13:37:11] [telegram.php:263]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:37:12] [telegram.php:263]             Message sent successfully (ID: 123)
[2026-05-27 13:37:27] [unknown:?]                     
[2026-05-27 13:37:27] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:37:27] [unknown:?]                    Data: {
    "update_id": 900328197,
    "message": {
        "message_id": 124,
        "from": {
            "id": 8758879400,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8758879400,
            "type": "private"
        },
        "date": 1779878247,
        "text": "SEM260501"
    }
}
[2026-05-27 13:37:27] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:37:27] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:37:27] [telegram.php:126]             Loaded temporary language: lv for chat_id: 8758879400
[2026-05-27 13:37:27] [unknown:?]                    Using saved language preference: lv
[2026-05-27 13:37:27] [unknown:?]                    User entered object code: SEM260501
[2026-05-27 13:37:27] [helpers.php:308]              🔐 Telegram token context set (entered_object_code)
[2026-05-27 13:37:27] [telegram.php:567]             ✅ Saved object code: SEM260501
[2026-05-27 13:37:27] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 13:37:27] [telegram.php:579]             Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️ℹ️   Lūdzu, nosūtiet savu tālruņa numuru, izmantojot zemāk esošo pogu.
[2026-05-27 13:37:27] [telegram.php:579]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:37:28] [telegram.php:579]             Message sent successfully (ID: 125)
[2026-05-27 13:37:28] [unknown:?]                    Stored keyboard message ID in session: 125
[2026-05-27 13:37:28] [telegram.php:591]             Deleted temporary language file for chat_id: 8758879400
[2026-05-27 13:37:30] [unknown:?]                     
[2026-05-27 13:37:30] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:37:30] [unknown:?]                    Data: {
    "update_id": 900328198,
    "message": {
        "message_id": 126,
        "from": {
            "id": 8758879400,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8758879400,
            "type": "private"
        },
        "date": 1779878250,
        "contact": {
            "phone_number": "37128722751",
            "first_name": "Ilona",
            "last_name": "Roga",
            "user_id": 8758879400
        }
    }
}
[2026-05-27 13:37:30] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:37:30] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 13:37:30] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:37:30] [telegram.php:624]             Processing phone number: 37128722751 for object: SEM260501
[2026-05-27 13:37:30] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:37:30] [telegram.php:624]             Cleaned phone number: 37128722751
[2026-05-27 13:37:30] [telegram.php:624]             Comparing: User phone '37128722751' with API phone '37129275774' or '29275774'
[2026-05-27 13:37:30] [telegram.php:624]             Comparing: User phone '37128722751' with API phone '37126539902' or '26539902'
[2026-05-27 13:37:30] [telegram.php:624]             Comparing: User phone '37128722751' with API phone '37128722751' or '28722751'
[2026-05-27 13:37:30] [awaiting_phone.php:55]        ✅ Phone number match found with key: 19b37c807822133c655ce55f5534816158f78fe86033fdf8
[2026-05-27 13:37:30] [awaiting_phone.php:88]        ✅ Phone verified for SEMARAH with API key: 19b37c807822133c655ce55f5534816158f78fe86033fdf8
[2026-05-27 13:37:30] [awaiting_phone.php:97]        Deleting message: 125
[2026-05-27 13:37:30] [awaiting_phone.php:97]        ℹ️ Message deleted successfully
[2026-05-27 13:37:30] [telegram.php:624]             Deleted keyboard message from session: 125
[2026-05-27 13:37:30] [helpers.php:587]              Sending message content: ✅   Tālruņa numurs ir verificēts!
[2026-05-27 13:37:30] [awaiting_phone.php:115]       Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:37:30] [awaiting_phone.php:115]       Message sent successfully (ID: 127)
[2026-05-27 13:37:30] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 13:37:30] [awaiting_phone.php:139]       Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Ievadiet automašīnas numuru:
[2026-05-27 13:37:30] [awaiting_phone.php:139]       Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:37:31] [awaiting_phone.php:139]       Message sent successfully (ID: 128)
[2026-05-27 13:37:47] [unknown:?]                     
[2026-05-27 13:37:47] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:37:47] [unknown:?]                    Data: {
    "update_id": 900328199,
    "message": {
        "message_id": 129,
        "from": {
            "id": 8758879400,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8758879400,
            "type": "private"
        },
        "date": 1779878267,
        "text": "Kj919"
    }
}
[2026-05-27 13:37:47] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:37:47] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 13:37:47] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:37:47] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 13:37:47] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:37:47] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":true,"contractId":2} for API key
[2026-05-27 13:37:47] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:37:47] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 13:37:47] [telegram.php:628]             🚗 Validating car number: KJ919 for SEMARAH
[2026-05-27 13:37:47] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:37:47] [helpers.php:1089]             ✅ API key is active
[2026-05-27 13:37:47] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 13:37:47] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 13:37:47] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:37:47] [helpers.php:948]              ✅ Found UID for API key: SEM_02
[2026-05-27 13:37:47] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:37:47] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 13:37:47] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 13:37:47] [validator_api.php:56]         With payload: {"API_KEY":"19b3****************************************fdf8","PlateNumber":"KJ919","UID":"SEM_02","PartnerID":2}
[2026-05-27 13:37:47] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 13:37:47] [validator_api.php:56]         API Response Code: 200
[2026-05-27 13:37:47] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"KE919","CheckInTimeStamp":"20260527T125247+03:00","CurrentFee":"0","NextTimeSlice":"20260528T125247+03:00","ClientGroup":"2","CurrentTid":"2","BadgeState":"VALID"},"ErrorDescription":null}
[2026-05-27 13:37:47] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:37:47] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 13:37:47] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 13:37:47] [validator_api.php:70]         ❌ PublicGroupID not found for API key: 19b37c807822133c655ce55f5534816158f78fe86033fdf8
[2026-05-27 13:37:47] [awaiting_car_number.php:121]  ✅ Car number validated successfully: KJ919
[2026-05-27 13:37:47] [awaiting_car_number.php:134]  Sending message content: 🚗   *KE919    (G2 : T2)  🟩*🕒   Iebraukšana: *2026-05-27 12:52*💰   Pašreizējā maksa: *€0.00*
[2026-05-27 13:37:47] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:37:47] [awaiting_car_number.php:134]  Message sent successfully (ID: 130)
[2026-05-27 13:37:47] [awaiting_car_number.php:138]  Sending message content: ➡️ Translation missing: plate_recognized: *KE919*
[2026-05-27 13:37:47] [awaiting_car_number.php:138]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:37:48] [awaiting_car_number.php:138]  ERROR: Failed to send message to Telegram
[2026-05-27 13:37:48] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:37:48] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 13:37:48] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 13:37:48] [awaiting_car_number.php:153]  ❌ PublicGroupID not found for API key: 19b37c807822133c655ce55f5534816158f78fe86033fdf8
[2026-05-27 13:37:48] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-27 13:37:48] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:37:48] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "false" for API key
[2026-05-27 13:37:48] [validator_api.php:143]        ✅ Found discounts: []
[2026-05-27 13:37:48] [awaiting_car_number.php:163]  ❌ No valid discounts found after parsing
[2026-05-27 13:37:48] [awaiting_car_number.php:189]  Sending message content: Atlaides nav pieejamas!
[2026-05-27 13:37:48] [awaiting_car_number.php:189]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:37:48] [awaiting_car_number.php:189]  Message sent successfully (ID: 131)
[2026-05-27 13:37:48] [awaiting_car_number.php:190]  Sending message content: 🚙   Ievadiet automašīnas numuru:
[2026-05-27 13:37:48] [awaiting_car_number.php:190]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:37:48] [awaiting_car_number.php:190]  Message sent successfully (ID: 132)
[2026-05-27 13:38:26] [unknown:?]                     
[2026-05-27 13:38:26] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:38:26] [unknown:?]                    Data: {
    "update_id": 900328200,
    "message": {
        "message_id": 133,
        "from": {
            "id": 8758879400,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8758879400,
            "type": "private"
        },
        "date": 1779878305,
        "text": "Mo5442"
    }
}
[2026-05-27 13:38:26] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:38:26] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 13:38:26] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:38:26] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 13:38:26] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:38:26] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":true,"contractId":2} for API key
[2026-05-27 13:38:26] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:38:26] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 13:38:26] [telegram.php:628]             🚗 Validating car number: MO5442 for SEMARAH
[2026-05-27 13:38:26] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:38:26] [helpers.php:1089]             ✅ API key is active
[2026-05-27 13:38:26] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 13:38:26] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 13:38:26] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:38:26] [helpers.php:948]              ✅ Found UID for API key: SEM_02
[2026-05-27 13:38:26] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:38:26] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 13:38:26] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 13:38:26] [validator_api.php:56]         With payload: {"API_KEY":"19b3****************************************fdf8","PlateNumber":"MO5442","UID":"SEM_02","PartnerID":2}
[2026-05-27 13:38:26] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 13:38:26] [validator_api.php:56]         API Response Code: 200
[2026-05-27 13:38:26] [validator_api.php:56]         API Response: {"Present":false,"VehicleInfo":null,"ErrorDescription":"Plate not found in parking"}
[2026-05-27 13:38:26] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:38:26] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 13:38:26] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 13:38:26] [validator_api.php:70]         ❌ PublicGroupID not found for API key: 19b37c807822133c655ce55f5534816158f78fe86033fdf8
[2026-05-27 13:38:26] [awaiting_car_number.php:220]  ❌ Car number not found: MO5442
[2026-05-27 13:38:26] [awaiting_car_number.php:221]  Sending message content: ❌   Automašīna *MO5442* NAV atrasta Semarah Hotel Lielupe autostāvvietā.
[2026-05-27 13:38:26] [awaiting_car_number.php:221]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:38:26] [awaiting_car_number.php:221]  Message sent successfully (ID: 134)
[2026-05-27 13:38:26] [awaiting_car_number.php:240]  Sending message content: 🚙   Ievadiet automašīnas numuru:
[2026-05-27 13:38:26] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:38:26] [awaiting_car_number.php:240]  Message sent successfully (ID: 135)
[2026-05-27 13:39:09] [unknown:?]                     
[2026-05-27 13:39:09] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:39:09] [unknown:?]                    Data: {
    "update_id": 900328201,
    "message": {
        "message_id": 136,
        "from": {
            "id": 8758879400,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8758879400,
            "type": "private"
        },
        "date": 1779878348,
        "text": "Ey1369"
    }
}
[2026-05-27 13:39:09] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:39:09] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 13:39:09] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:39:09] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 13:39:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:09] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":true,"contractId":2} for API key
[2026-05-27 13:39:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:09] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 13:39:09] [telegram.php:628]             🚗 Validating car number: EY1369 for SEMARAH
[2026-05-27 13:39:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:09] [helpers.php:1089]             ✅ API key is active
[2026-05-27 13:39:09] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 13:39:09] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 13:39:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:09] [helpers.php:948]              ✅ Found UID for API key: SEM_02
[2026-05-27 13:39:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:09] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 13:39:09] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 13:39:09] [validator_api.php:56]         With payload: {"API_KEY":"19b3****************************************fdf8","PlateNumber":"EY1369","UID":"SEM_02","PartnerID":2}
[2026-05-27 13:39:09] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 13:39:09] [validator_api.php:56]         API Response Code: 200
[2026-05-27 13:39:09] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"EY1369","CheckInTimeStamp":"20260527T133724+03:00","CurrentFee":"0","NextTimeSlice":"20260527T135224+03:00","ClientGroup":"0","CurrentTid":"1","BadgeState":null},"ErrorDescription":null}
[2026-05-27 13:39:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:09] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 13:39:09] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 13:39:09] [validator_api.php:70]         ❌ PublicGroupID not found for API key: 19b37c807822133c655ce55f5534816158f78fe86033fdf8
[2026-05-27 13:39:09] [awaiting_car_number.php:121]  ✅ Car number validated successfully: EY1369
[2026-05-27 13:39:09] [awaiting_car_number.php:134]  Sending message content: 🚗   *EY1369    (G0 : T1)*🕒   Iebraukšana: *2026-05-27 13:37*💰   Pašreizējā maksa: *€0.00*
[2026-05-27 13:39:09] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:39:09] [awaiting_car_number.php:134]  Message sent successfully (ID: 137)
[2026-05-27 13:39:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:09] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 13:39:09] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 13:39:09] [awaiting_car_number.php:153]  ❌ PublicGroupID not found for API key: 19b37c807822133c655ce55f5534816158f78fe86033fdf8
[2026-05-27 13:39:09] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-27 13:39:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:09] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "false" for API key
[2026-05-27 13:39:09] [validator_api.php:143]        ✅ Found discounts: []
[2026-05-27 13:39:09] [awaiting_car_number.php:163]  ❌ No valid discounts found after parsing
[2026-05-27 13:39:09] [awaiting_car_number.php:189]  Sending message content: Atlaides nav pieejamas!
[2026-05-27 13:39:09] [awaiting_car_number.php:189]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:39:09] [awaiting_car_number.php:189]  Message sent successfully (ID: 138)
[2026-05-27 13:39:09] [awaiting_car_number.php:190]  Sending message content: 🚙   Ievadiet automašīnas numuru:
[2026-05-27 13:39:09] [awaiting_car_number.php:190]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:39:10] [awaiting_car_number.php:190]  Message sent successfully (ID: 139)
[2026-05-27 13:39:35] [unknown:?]                     
[2026-05-27 13:39:35] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:39:35] [unknown:?]                    Data: {
    "update_id": 900328202,
    "message": {
        "message_id": 140,
        "from": {
            "id": 8758879400,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8758879400,
            "type": "private"
        },
        "date": 1779878375,
        "text": "Nm7742"
    }
}
[2026-05-27 13:39:35] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:39:35] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 13:39:35] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:39:35] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 13:39:35] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:35] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":true,"contractId":2} for API key
[2026-05-27 13:39:35] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:35] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 13:39:35] [telegram.php:628]             🚗 Validating car number: NM7742 for SEMARAH
[2026-05-27 13:39:35] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:35] [helpers.php:1089]             ✅ API key is active
[2026-05-27 13:39:35] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 13:39:35] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 13:39:35] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:35] [helpers.php:948]              ✅ Found UID for API key: SEM_02
[2026-05-27 13:39:35] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:35] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 13:39:35] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 13:39:35] [validator_api.php:56]         With payload: {"API_KEY":"19b3****************************************fdf8","PlateNumber":"NM7742","UID":"SEM_02","PartnerID":2}
[2026-05-27 13:39:35] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 13:39:35] [validator_api.php:56]         API Response Code: 200
[2026-05-27 13:39:35] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"NM7742","CheckInTimeStamp":"20260527T125305+03:00","CurrentFee":"150","NextTimeSlice":"20260527T135305+03:00","ClientGroup":"0","CurrentTid":"1","BadgeState":null},"ErrorDescription":null}
[2026-05-27 13:39:35] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:35] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 13:39:35] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 13:39:35] [validator_api.php:70]         ❌ PublicGroupID not found for API key: 19b37c807822133c655ce55f5534816158f78fe86033fdf8
[2026-05-27 13:39:35] [awaiting_car_number.php:121]  ✅ Car number validated successfully: NM7742
[2026-05-27 13:39:35] [awaiting_car_number.php:134]  Sending message content: 🚗   *NM7742    (G0 : T1)*🕒   Iebraukšana: *2026-05-27 12:53*💰   Pašreizējā maksa: *€1.50*
[2026-05-27 13:39:35] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:39:36] [awaiting_car_number.php:134]  Message sent successfully (ID: 141)
[2026-05-27 13:39:36] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:36] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 13:39:36] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 13:39:36] [awaiting_car_number.php:153]  ❌ PublicGroupID not found for API key: 19b37c807822133c655ce55f5534816158f78fe86033fdf8
[2026-05-27 13:39:36] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-27 13:39:36] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:39:36] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "false" for API key
[2026-05-27 13:39:36] [validator_api.php:143]        ✅ Found discounts: []
[2026-05-27 13:39:36] [awaiting_car_number.php:163]  ❌ No valid discounts found after parsing
[2026-05-27 13:39:36] [awaiting_car_number.php:189]  Sending message content: Atlaides nav pieejamas!
[2026-05-27 13:39:36] [awaiting_car_number.php:189]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:39:36] [awaiting_car_number.php:189]  Message sent successfully (ID: 142)
[2026-05-27 13:39:36] [awaiting_car_number.php:190]  Sending message content: 🚙   Ievadiet automašīnas numuru:
[2026-05-27 13:39:36] [awaiting_car_number.php:190]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:39:36] [awaiting_car_number.php:190]  Message sent successfully (ID: 143)
[2026-05-27 13:40:18] [unknown:?]                     
[2026-05-27 13:40:18] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:40:18] [unknown:?]                    Data: {
    "update_id": 900328203,
    "message": {
        "message_id": 144,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1779878418,
        "text": "Nm7742"
    }
}
[2026-05-27 13:40:18] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:40:18] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 13:40:18] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:40:18] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 13:40:18] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:40:18] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-27 13:40:18] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:40:18] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 13:40:18] [telegram.php:628]             🚗 Validating car number: NM7742 for SEMARAH
[2026-05-27 13:40:18] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:40:18] [helpers.php:1089]             ✅ API key is active
[2026-05-27 13:40:18] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 13:40:18] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 13:40:18] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:40:18] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-27 13:40:18] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:40:18] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 13:40:18] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 13:40:18] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"NM7742","UID":"HIP_01","PartnerID":2}
[2026-05-27 13:40:18] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 13:40:18] [validator_api.php:56]         API Response Code: 200
[2026-05-27 13:40:18] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"NM7742","CheckInTimeStamp":"20260527T125305+03:00","CurrentFee":"150","NextTimeSlice":"20260527T135305+03:00","ClientGroup":"0","CurrentTid":"1","BadgeState":null},"ErrorDescription":null}
[2026-05-27 13:40:18] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:40:18] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 13:40:18] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 13:40:18] [helpers.php:1165]             ✅ Found PublicGroupID in direct format: 0
[2026-05-27 13:40:18] [validator_api.php:74]         ✅ Found PublicGroupID: 0 for API key. Adding to response.
[2026-05-27 13:40:18] [awaiting_car_number.php:121]  ✅ Car number validated successfully: NM7742
[2026-05-27 13:40:18] [awaiting_car_number.php:134]  Sending message content: 🚗   *NM7742    (G0 : T1)*🕒   Въезд: *2026-05-27 12:53*💰   Текущая сумма: *€1.50*
[2026-05-27 13:40:18] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:40:19] [awaiting_car_number.php:134]  Message sent successfully (ID: 145)
[2026-05-27 13:40:19] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:40:19] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 13:40:19] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 13:40:19] [helpers.php:1165]             ✅ Found PublicGroupID in direct format: 0
[2026-05-27 13:40:19] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-27 13:40:19] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:40:19] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "false" for API key
[2026-05-27 13:40:19] [validator_api.php:143]        ✅ Found discounts: []
[2026-05-27 13:40:19] [awaiting_car_number.php:163]  ❌ No valid discounts found after parsing
[2026-05-27 13:40:19] [awaiting_car_number.php:189]  Sending message content: Нет доступных скидок!
[2026-05-27 13:40:19] [awaiting_car_number.php:189]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:40:19] [awaiting_car_number.php:189]  Message sent successfully (ID: 146)
[2026-05-27 13:40:19] [awaiting_car_number.php:190]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-27 13:40:19] [awaiting_car_number.php:190]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:40:19] [awaiting_car_number.php:190]  Message sent successfully (ID: 147)
[2026-05-27 13:42:33] [unknown:?]                     
[2026-05-27 13:42:33] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:42:33] [unknown:?]                    Data: {
    "update_id": 900328204,
    "message": {
        "message_id": 148,
        "from": {
            "id": 8758879400,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8758879400,
            "type": "private"
        },
        "date": 1779878552,
        "text": "??"
    }
}
[2026-05-27 13:42:33] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:42:33] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 13:42:33] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:42:33] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 13:42:33] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:42:33] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":true,"contractId":2} for API key
[2026-05-27 13:42:33] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:42:33] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 13:42:33] [telegram.php:628]             🚗 Validating car number: ?? for SEMARAH
[2026-05-27 13:42:33] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:42:33] [helpers.php:1089]             ✅ API key is active
[2026-05-27 13:42:33] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 13:42:33] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 13:42:33] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:42:33] [helpers.php:948]              ✅ Found UID for API key: SEM_02
[2026-05-27 13:42:33] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:42:33] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 13:42:33] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 13:42:33] [validator_api.php:56]         With payload: {"API_KEY":"19b3****************************************fdf8","PlateNumber":"??","UID":"SEM_02","PartnerID":2}
[2026-05-27 13:42:33] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 13:42:33] [validator_api.php:56]         API Response Code: 200
[2026-05-27 13:42:33] [validator_api.php:56]         API Response: {"Present":false,"VehicleInfo":null,"ErrorDescription":"Plate not found in parking"}
[2026-05-27 13:42:33] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:42:33] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 13:42:33] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 13:42:33] [validator_api.php:70]         ❌ PublicGroupID not found for API key: 19b37c807822133c655ce55f5534816158f78fe86033fdf8
[2026-05-27 13:42:33] [awaiting_car_number.php:220]  ❌ Car number not found: ??
[2026-05-27 13:42:33] [awaiting_car_number.php:221]  Sending message content: ❌   Automašīna *??* NAV atrasta Semarah Hotel Lielupe autostāvvietā.
[2026-05-27 13:42:33] [awaiting_car_number.php:221]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:42:33] [awaiting_car_number.php:221]  Message sent successfully (ID: 149)
[2026-05-27 13:42:33] [awaiting_car_number.php:240]  Sending message content: 🚙   Ievadiet automašīnas numuru:
[2026-05-27 13:42:33] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:42:33] [awaiting_car_number.php:240]  Message sent successfully (ID: 150)
[2026-05-27 13:42:40] [unknown:?]                     
[2026-05-27 13:42:40] [unknown:?]                    =======================  New message =======================
[2026-05-27 13:42:40] [unknown:?]                    Data: {
    "update_id": 900328205,
    "message": {
        "message_id": 151,
        "from": {
            "id": 8758879400,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8758879400,
            "type": "private"
        },
        "date": 1779878559,
        "text": "!!"
    }
}
[2026-05-27 13:42:40] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 13:42:40] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 13:42:40] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 13:42:40] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 13:42:40] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:42:40] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":true,"contractId":2} for API key
[2026-05-27 13:42:40] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:42:40] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 13:42:40] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 13:42:40] [helpers.php:1208]             ✅ Found parameter 'BarrierControl' = false for API key
[2026-05-27 13:42:40] [awaiting_car_number.php:36]   Sending message content: Barjeras vadība nav pieejama jūsu kontam.
[2026-05-27 13:42:40] [awaiting_car_number.php:36]   Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 13:42:40] [awaiting_car_number.php:36]   Message sent successfully (ID: 152)
[2026-05-27 14:43:37] [unknown:?]                     
[2026-05-27 14:43:37] [unknown:?]                    =======================  New message =======================
[2026-05-27 14:43:37] [unknown:?]                    Data: {
    "update_id": 900328206,
    "message": {
        "message_id": 153,
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8433225764,
            "type": "private"
        },
        "date": 1779882216,
        "text": "Ke919"
    }
}
[2026-05-27 14:43:37] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 14:43:37] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 14:43:37] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 14:43:37] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 14:43:37] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:43:37] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-27 14:43:37] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:43:37] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 14:43:37] [telegram.php:628]             🚗 Validating car number: KE919 for SEMARAH
[2026-05-27 14:43:37] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:43:37] [helpers.php:1089]             ✅ API key is active
[2026-05-27 14:43:37] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 14:43:37] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 14:43:37] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:43:37] [helpers.php:948]              ✅ Found UID for API key: SEM_03
[2026-05-27 14:43:37] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:43:37] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 14:43:37] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 14:43:37] [validator_api.php:56]         With payload: {"API_KEY":"843b****************************************cf92","PlateNumber":"KE919","UID":"SEM_03","PartnerID":2}
[2026-05-27 14:43:37] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 14:43:37] [validator_api.php:56]         API Response Code: 200
[2026-05-27 14:43:37] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"KE919","CheckInTimeStamp":"20260527T125247+03:00","CurrentFee":"0","NextTimeSlice":"20260528T125247+03:00","ClientGroup":"2","CurrentTid":"2","BadgeState":"VALID"},"ErrorDescription":null}
[2026-05-27 14:43:37] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:43:37] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 14:43:37] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 14:43:37] [validator_api.php:70]         ❌ PublicGroupID not found for API key: 843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92
[2026-05-27 14:43:37] [awaiting_car_number.php:121]  ✅ Car number validated successfully: KE919
[2026-05-27 14:43:37] [awaiting_car_number.php:134]  Sending message content: 🚗   *KE919    (G2 : T2)  🟩*🕒   Iebraukšana: *2026-05-27 12:52*💰   Pašreizējā maksa: *€0.00*
[2026-05-27 14:43:37] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 14:43:37] [awaiting_car_number.php:134]  Message sent successfully (ID: 154)
[2026-05-27 14:43:37] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:43:37] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 14:43:37] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 14:43:37] [awaiting_car_number.php:153]  ❌ PublicGroupID not found for API key: 843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92
[2026-05-27 14:43:37] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-27 14:43:37] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:43:37] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "true" for API key
[2026-05-27 14:43:37] [awaiting_car_number.php:163]  🚫 NoDiscountButtons flag is set for this API key - skipping discount buttons
[2026-05-27 14:43:37] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:43:37] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:43:37] [awaiting_car_number.php:169]  Checking PublicGroupID for 'Our Customer' button. public_group_id: null, plate_number: KE919
[2026-05-27 14:43:37] [awaiting_car_number.php:169]  ❌ Not adding 'Our Customer' button - PublicGroupID is null
[2026-05-27 14:43:37] [awaiting_car_number.php:208]  Sending message content: Izvēlieties atlaidi: *KE919*
[2026-05-27 14:43:37] [awaiting_car_number.php:208]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 14:43:38] [awaiting_car_number.php:208]  Message sent successfully (ID: 155)
[2026-05-27 14:44:52] [unknown:?]                     
[2026-05-27 14:44:52] [unknown:?]                    =======================  New message =======================
[2026-05-27 14:44:52] [unknown:?]                    Data: {
    "update_id": 900328207,
    "callback_query": {
        "id": "8550312746618477864",
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "first_name": "Reception",
            "language_code": "en"
        },
        "message": {
            "message_id": 155,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 8433225764,
                "first_name": "Reception",
                "type": "private"
            },
            "date": 1779882218,
            "text": "Izvēlieties atlaidi: KE919",
            "entities": [
                {
                    "offset": 21,
                    "length": 5,
                    "type": "bold"
                }
            ],
            "reply_markup": {
                "inline_keyboard": [
                    [
                        {
                            "text": "✓   SAMAZINĀTS TARIFS",
                            "callback_data": "discount|tariff|0"
                        }
                    ],
                    [
                        {
                            "text": "❌ ATCELT",
                            "callback_data": "cancel_discount"
                        }
                    ]
                ]
            }
        },
        "chat_instance": "-9130294041758187780",
        "data": "cancel_discount"
    }
}
[2026-05-27 14:44:52] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 14:44:52] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 14:44:52] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 14:44:52] [unknown:?]                    🔄 Processing callback query: cancel_discount
[2026-05-27 14:44:52] [telegram.php:420]             Deleting message: 155
[2026-05-27 14:44:52] [telegram.php:420]             ℹ️ Message deleted successfully
[2026-05-27 14:44:52] [telegram.php:423]             Answering callback query: 8550312746618477864
[2026-05-27 14:44:53] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 14:44:53] [telegram.php:427]             Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Ievadiet automašīnas numuru:
[2026-05-27 14:44:53] [telegram.php:427]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 14:44:53] [telegram.php:427]             Message sent successfully (ID: 156)
[2026-05-27 14:44:53] [unknown:?]                    User canceled discount selection
[2026-05-27 14:46:00] [unknown:?]                     
[2026-05-27 14:46:00] [unknown:?]                    =======================  New message =======================
[2026-05-27 14:46:00] [unknown:?]                    Data: {
    "update_id": 900328208,
    "message": {
        "message_id": 157,
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8433225764,
            "type": "private"
        },
        "date": 1779882359,
        "text": "Om7527"
    }
}
[2026-05-27 14:46:00] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 14:46:00] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 14:46:00] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 14:46:00] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 14:46:00] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:46:00] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-27 14:46:00] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:46:00] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 14:46:00] [telegram.php:628]             🚗 Validating car number: OM7527 for SEMARAH
[2026-05-27 14:46:00] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:46:00] [helpers.php:1089]             ✅ API key is active
[2026-05-27 14:46:00] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 14:46:00] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 14:46:00] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:46:00] [helpers.php:948]              ✅ Found UID for API key: SEM_03
[2026-05-27 14:46:00] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:46:00] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 14:46:00] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 14:46:00] [validator_api.php:56]         With payload: {"API_KEY":"843b****************************************cf92","PlateNumber":"OM7527","UID":"SEM_03","PartnerID":2}
[2026-05-27 14:46:00] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 14:46:00] [validator_api.php:56]         API Response Code: 200
[2026-05-27 14:46:00] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"OM7527","CheckInTimeStamp":"20260527T123634+03:00","CurrentFee":"450","NextTimeSlice":"20260527T153634+03:00","ClientGroup":"0","CurrentTid":"1","BadgeState":null},"ErrorDescription":null}
[2026-05-27 14:46:00] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:46:00] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 14:46:00] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 14:46:00] [validator_api.php:70]         ❌ PublicGroupID not found for API key: 843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92
[2026-05-27 14:46:00] [awaiting_car_number.php:121]  ✅ Car number validated successfully: OM7527
[2026-05-27 14:46:00] [awaiting_car_number.php:134]  Sending message content: 🚗   *OM7527    (G0 : T1)*🕒   Iebraukšana: *2026-05-27 12:36*💰   Pašreizējā maksa: *€4.50*
[2026-05-27 14:46:00] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 14:46:00] [awaiting_car_number.php:134]  Message sent successfully (ID: 158)
[2026-05-27 14:46:00] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:46:00] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 14:46:00] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 14:46:00] [awaiting_car_number.php:153]  ❌ PublicGroupID not found for API key: 843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92
[2026-05-27 14:46:00] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-27 14:46:00] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:46:00] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "true" for API key
[2026-05-27 14:46:00] [awaiting_car_number.php:163]  🚫 NoDiscountButtons flag is set for this API key - skipping discount buttons
[2026-05-27 14:46:00] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:46:00] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:46:00] [awaiting_car_number.php:169]  Checking PublicGroupID for 'Our Customer' button. public_group_id: null, plate_number: OM7527
[2026-05-27 14:46:00] [awaiting_car_number.php:169]  ❌ Not adding 'Our Customer' button - PublicGroupID is null
[2026-05-27 14:46:00] [awaiting_car_number.php:208]  Sending message content: Izvēlieties atlaidi: *OM7527*
[2026-05-27 14:46:00] [awaiting_car_number.php:208]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 14:46:01] [awaiting_car_number.php:208]  Message sent successfully (ID: 159)
[2026-05-27 14:46:12] [unknown:?]                     
[2026-05-27 14:46:12] [unknown:?]                    =======================  New message =======================
[2026-05-27 14:46:12] [unknown:?]                    Data: {
    "update_id": 900328209,
    "callback_query": {
        "id": "8550312747767731404",
        "from": {
            "id": 8433225764,
            "is_bot": false,
            "first_name": "Reception",
            "language_code": "en"
        },
        "message": {
            "message_id": 159,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 8433225764,
                "first_name": "Reception",
                "type": "private"
            },
            "date": 1779882361,
            "text": "Izvēlieties atlaidi: OM7527",
            "entities": [
                {
                    "offset": 21,
                    "length": 6,
                    "type": "bold"
                }
            ],
            "reply_markup": {
                "inline_keyboard": [
                    [
                        {
                            "text": "✓   SAMAZINĀTS TARIFS",
                            "callback_data": "discount|tariff|0"
                        }
                    ],
                    [
                        {
                            "text": "❌ ATCELT",
                            "callback_data": "cancel_discount"
                        }
                    ]
                ]
            }
        },
        "chat_instance": "-9130294041758187780",
        "data": "discount|tariff|0"
    }
}
[2026-05-27 14:46:12] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 14:46:12] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 14:46:12] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 14:46:12] [unknown:?]                    🔄 Processing callback query: discount|tariff|0
[2026-05-27 14:46:12] [telegram.php:515]             Processing discount callback: discount|tariff|0
[2026-05-27 14:46:12] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:46:12] [helpers.php:948]              ✅ Found UID for API key: SEM_03
[2026-05-27 14:46:12] [awaiting_discount.php:48]     🔄 Applying tariff discount of 0 to plate OM7527
[2026-05-27 14:46:12] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 14:46:12] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 14:46:12] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:46:12] [awaiting_discount.php:48]     Using GID+100 as discount_value: 102
[2026-05-27 14:46:12] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:46:12] [helpers.php:948]              ✅ Found UID for API key: SEM_03
[2026-05-27 14:46:12] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:46:12] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-27 14:46:12] [validator_api.php:217]        🔍 Making API request to: https://87.110.183.186:443/api/validator/discount/tariff
[2026-05-27 14:46:12] [validator_api.php:217]        With payload: {"API_KEY":"843b****************************************cf92","PlateNumber":"OM7527","PartnerID":2,"UID":"SEM_03","DiscountAmount":102}
[2026-05-27 14:46:12] [validator_api.php:217]        tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 14:46:12] [validator_api.php:217]        API Response Code: 200
[2026-05-27 14:46:12] [validator_api.php:417]        API Response: {"Successful":true,"CarFoundInParking":true,"NewFee":450,"ResponseDescription":null}
[2026-05-27 14:46:12] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 14:46:12] [awaiting_discount.php:97]     Answering callback query: 8550312747767731404
[2026-05-27 14:46:12] [awaiting_discount.php:101]    Deleting message: 159
[2026-05-27 14:46:12] [awaiting_discount.php:101]    ℹ️ Message deleted successfully
[2026-05-27 14:46:12] [helpers.php:587]              Sending message content: ✅   SAMAZINĀTS TARIFS IR AKTĪVS
[2026-05-27 14:46:12] [awaiting_discount.php:104]    Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 14:46:13] [awaiting_discount.php:104]    Message sent successfully (ID: 160)
[2026-05-27 14:46:13] [awaiting_discount.php:116]    Sending message content: 💰   Apmaksai: *€4.50*
[2026-05-27 14:46:13] [awaiting_discount.php:116]    Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 14:46:13] [awaiting_discount.php:116]    Message sent successfully (ID: 161)
[2026-05-27 14:46:13] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 14:46:13] [awaiting_discount.php:124]    Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Ievadiet automašīnas numuru:
[2026-05-27 14:46:13] [awaiting_discount.php:124]    Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 14:46:13] [awaiting_discount.php:124]    Message sent successfully (ID: 162)
[2026-05-27 14:46:13] [awaiting_discount.php:126]    ✅ Special tariff applied: 102
[2026-05-27 16:59:31] [unknown:?]                     
[2026-05-27 16:59:31] [unknown:?]                    =======================  New message =======================
[2026-05-27 16:59:31] [unknown:?]                    Data: {
    "update_id": 900328210,
    "message": {
        "message_id": 163,
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8925429392,
            "type": "private"
        },
        "date": 1779890371,
        "text": "NY9002"
    }
}
[2026-05-27 16:59:31] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 16:59:31] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 16:59:31] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 16:59:31] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 16:59:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 16:59:31] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-27 16:59:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 16:59:31] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-27 16:59:31] [telegram.php:628]             🚗 Validating car number: NY9002 for SEMARAH
[2026-05-27 16:59:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 16:59:31] [helpers.php:1089]             ✅ API key is active
[2026-05-27 16:59:31] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 16:59:31] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 16:59:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 16:59:31] [helpers.php:948]              ✅ Found UID for API key: SEM_01
[2026-05-27 16:59:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 16:59:31] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-27 16:59:31] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 16:59:31] [validator_api.php:56]         With payload: {"API_KEY":"e125****************************************2b38","PlateNumber":"NY9002","UID":"SEM_01","PartnerID":0}
[2026-05-27 16:59:31] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 16:59:32] [validator_api.php:56]         API Response Code: 200
[2026-05-27 16:59:32] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"NY9002","CheckInTimeStamp":"20260527T165546+03:00","CurrentFee":"0","NextTimeSlice":"20260527T171046+03:00","ClientGroup":"0","CurrentTid":"1","BadgeState":null},"ErrorDescription":null}
[2026-05-27 16:59:32] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 16:59:32] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 16:59:32] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 16:59:32] [validator_api.php:70]         ❌ PublicGroupID not found for API key: e1257a2dfb1c30ad279f722552d85340f43f503578a62b38
[2026-05-27 16:59:32] [awaiting_car_number.php:121]  ✅ Car number validated successfully: NY9002
[2026-05-27 16:59:32] [awaiting_car_number.php:134]  Sending message content: 🚗   *NY9002    (G0 : T1)*🕒   Check-in: *2026-05-27 16:55*💰   Current fee: *€0.00*
[2026-05-27 16:59:32] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 16:59:32] [awaiting_car_number.php:134]  Message sent successfully (ID: 164)
[2026-05-27 16:59:32] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 16:59:32] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 16:59:32] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 16:59:32] [awaiting_car_number.php:153]  ❌ PublicGroupID not found for API key: e1257a2dfb1c30ad279f722552d85340f43f503578a62b38
[2026-05-27 16:59:32] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-27 16:59:32] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 16:59:32] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "true" for API key
[2026-05-27 16:59:32] [awaiting_car_number.php:163]  🚫 NoDiscountButtons flag is set for this API key - skipping discount buttons
[2026-05-27 16:59:32] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 16:59:32] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 16:59:32] [awaiting_car_number.php:169]  Checking PublicGroupID for 'Our Customer' button. public_group_id: null, plate_number: NY9002
[2026-05-27 16:59:32] [awaiting_car_number.php:169]  ❌ Not adding 'Our Customer' button - PublicGroupID is null
[2026-05-27 16:59:32] [awaiting_car_number.php:208]  Sending message content: Select a discount: *NY9002*
[2026-05-27 16:59:32] [awaiting_car_number.php:208]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 16:59:32] [awaiting_car_number.php:208]  Message sent successfully (ID: 165)
[2026-05-27 16:59:34] [unknown:?]                     
[2026-05-27 16:59:34] [unknown:?]                    =======================  New message =======================
[2026-05-27 16:59:34] [unknown:?]                    Data: {
    "update_id": 900328211,
    "callback_query": {
        "id": "1440939194969094487",
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "first_name": "Semarah",
            "last_name": "SPA",
            "language_code": "en"
        },
        "message": {
            "message_id": 165,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 8925429392,
                "first_name": "Semarah",
                "last_name": "SPA",
                "type": "private"
            },
            "date": 1779890372,
            "text": "Select a discount: NY9002",
            "entities": [
                {
                    "offset": 19,
                    "length": 6,
                    "type": "bold"
                }
            ],
            "reply_markup": {
                "inline_keyboard": [
                    [
                        {
                            "text": "✓   APPLY REDUCED TARIFF",
                            "callback_data": "discount|tariff|0"
                        }
                    ],
                    [
                        {
                            "text": "❌ CANCEL",
                            "callback_data": "cancel_discount"
                        }
                    ]
                ]
            }
        },
        "chat_instance": "-6059999772737737528",
        "data": "discount|tariff|0"
    }
}
[2026-05-27 16:59:34] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 16:59:34] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 16:59:34] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 16:59:34] [unknown:?]                    🔄 Processing callback query: discount|tariff|0
[2026-05-27 16:59:34] [telegram.php:515]             Processing discount callback: discount|tariff|0
[2026-05-27 16:59:34] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 16:59:34] [helpers.php:948]              ✅ Found UID for API key: SEM_01
[2026-05-27 16:59:34] [awaiting_discount.php:48]     🔄 Applying tariff discount of 0 to plate NY9002
[2026-05-27 16:59:34] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 16:59:34] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 16:59:34] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 16:59:34] [awaiting_discount.php:48]     Using GID+100 as discount_value: 102
[2026-05-27 16:59:34] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 16:59:34] [helpers.php:948]              ✅ Found UID for API key: SEM_01
[2026-05-27 16:59:34] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 16:59:34] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-27 16:59:34] [validator_api.php:217]        🔍 Making API request to: https://87.110.183.186:443/api/validator/discount/tariff
[2026-05-27 16:59:34] [validator_api.php:217]        With payload: {"API_KEY":"e125****************************************2b38","PlateNumber":"NY9002","PartnerID":0,"UID":"SEM_01","DiscountAmount":102}
[2026-05-27 16:59:34] [validator_api.php:217]        tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 16:59:34] [validator_api.php:217]        API Response Code: 200
[2026-05-27 16:59:34] [validator_api.php:417]        API Response: {"Successful":true,"CarFoundInParking":true,"NewFee":0,"ResponseDescription":null}
[2026-05-27 16:59:34] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 16:59:34] [awaiting_discount.php:97]     Answering callback query: 1440939194969094487
[2026-05-27 16:59:34] [awaiting_discount.php:101]    Deleting message: 165
[2026-05-27 16:59:35] [awaiting_discount.php:101]    ℹ️ Message deleted successfully
[2026-05-27 16:59:35] [helpers.php:587]              Sending message content: ✅   REDUCED TARIFF APPLIED
[2026-05-27 16:59:35] [awaiting_discount.php:104]    Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 16:59:35] [awaiting_discount.php:104]    Message sent successfully (ID: 166)
[2026-05-27 16:59:35] [awaiting_discount.php:116]    Sending message content: 💰   Current fee: *€0.00*
[2026-05-27 16:59:35] [awaiting_discount.php:116]    Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 16:59:35] [awaiting_discount.php:116]    Message sent successfully (ID: 167)
[2026-05-27 16:59:35] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 16:59:35] [awaiting_discount.php:124]    Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Enter a license plate:
[2026-05-27 16:59:35] [awaiting_discount.php:124]    Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 16:59:35] [awaiting_discount.php:124]    Message sent successfully (ID: 168)
[2026-05-27 16:59:35] [awaiting_discount.php:126]    ✅ Special tariff applied: 102
[2026-05-27 21:02:08] [unknown:?]                     
[2026-05-27 21:02:08] [unknown:?]                    =======================  New message =======================
[2026-05-27 21:02:08] [unknown:?]                    Data: {
    "update_id": 900328212,
    "message": {
        "message_id": 169,
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8925429392,
            "type": "private"
        },
        "date": 1779904928,
        "text": "AA621"
    }
}
[2026-05-27 21:02:08] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 21:02:08] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 21:02:08] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 21:02:08] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 21:02:08] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:08] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-27 21:02:08] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:08] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-27 21:02:08] [telegram.php:628]             🚗 Validating car number: AA621 for SEMARAH
[2026-05-27 21:02:08] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:08] [helpers.php:1089]             ✅ API key is active
[2026-05-27 21:02:08] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 21:02:08] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 21:02:08] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:08] [helpers.php:948]              ✅ Found UID for API key: SEM_01
[2026-05-27 21:02:08] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:08] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-27 21:02:08] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 21:02:08] [validator_api.php:56]         With payload: {"API_KEY":"e125****************************************2b38","PlateNumber":"AA621","UID":"SEM_01","PartnerID":0}
[2026-05-27 21:02:08] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 21:02:09] [validator_api.php:56]         API Response Code: 200
[2026-05-27 21:02:09] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"AA621","CheckInTimeStamp":"20260527T190035+03:00","CurrentFee":"300","NextTimeSlice":"20260527T220035+03:00","ClientGroup":"0","CurrentTid":"1","BadgeState":null},"ErrorDescription":null}
[2026-05-27 21:02:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:09] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 21:02:09] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 21:02:09] [validator_api.php:70]         ❌ PublicGroupID not found for API key: e1257a2dfb1c30ad279f722552d85340f43f503578a62b38
[2026-05-27 21:02:09] [awaiting_car_number.php:121]  ✅ Car number validated successfully: AA621
[2026-05-27 21:02:09] [awaiting_car_number.php:134]  Sending message content: 🚗   *AA621    (G0 : T1)*🕒   Check-in: *2026-05-27 19:00*💰   Current fee: *€3.00*
[2026-05-27 21:02:09] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 21:02:09] [awaiting_car_number.php:134]  Message sent successfully (ID: 170)
[2026-05-27 21:02:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:09] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 21:02:09] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 21:02:09] [awaiting_car_number.php:153]  ❌ PublicGroupID not found for API key: e1257a2dfb1c30ad279f722552d85340f43f503578a62b38
[2026-05-27 21:02:09] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-27 21:02:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:09] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "true" for API key
[2026-05-27 21:02:09] [awaiting_car_number.php:163]  🚫 NoDiscountButtons flag is set for this API key - skipping discount buttons
[2026-05-27 21:02:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:09] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:09] [awaiting_car_number.php:169]  Checking PublicGroupID for 'Our Customer' button. public_group_id: null, plate_number: AA621
[2026-05-27 21:02:09] [awaiting_car_number.php:169]  ❌ Not adding 'Our Customer' button - PublicGroupID is null
[2026-05-27 21:02:09] [awaiting_car_number.php:208]  Sending message content: Select a discount: *AA621*
[2026-05-27 21:02:09] [awaiting_car_number.php:208]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 21:02:09] [awaiting_car_number.php:208]  Message sent successfully (ID: 171)
[2026-05-27 21:02:10] [unknown:?]                     
[2026-05-27 21:02:10] [unknown:?]                    =======================  New message =======================
[2026-05-27 21:02:10] [unknown:?]                    Data: {
    "update_id": 900328213,
    "callback_query": {
        "id": "1440939193989209242",
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "first_name": "Semarah",
            "last_name": "SPA",
            "language_code": "en"
        },
        "message": {
            "message_id": 171,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 8925429392,
                "first_name": "Semarah",
                "last_name": "SPA",
                "type": "private"
            },
            "date": 1779904929,
            "text": "Select a discount: AA621",
            "entities": [
                {
                    "offset": 19,
                    "length": 5,
                    "type": "bold"
                }
            ],
            "reply_markup": {
                "inline_keyboard": [
                    [
                        {
                            "text": "✓   APPLY REDUCED TARIFF",
                            "callback_data": "discount|tariff|0"
                        }
                    ],
                    [
                        {
                            "text": "❌ CANCEL",
                            "callback_data": "cancel_discount"
                        }
                    ]
                ]
            }
        },
        "chat_instance": "-6059999772737737528",
        "data": "discount|tariff|0"
    }
}
[2026-05-27 21:02:10] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 21:02:10] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 21:02:10] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 21:02:10] [unknown:?]                    🔄 Processing callback query: discount|tariff|0
[2026-05-27 21:02:10] [telegram.php:515]             Processing discount callback: discount|tariff|0
[2026-05-27 21:02:10] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:10] [helpers.php:948]              ✅ Found UID for API key: SEM_01
[2026-05-27 21:02:10] [awaiting_discount.php:48]     🔄 Applying tariff discount of 0 to plate AA621
[2026-05-27 21:02:10] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 21:02:10] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 21:02:10] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:10] [awaiting_discount.php:48]     Using GID+100 as discount_value: 102
[2026-05-27 21:02:10] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:10] [helpers.php:948]              ✅ Found UID for API key: SEM_01
[2026-05-27 21:02:10] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:10] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-27 21:02:10] [validator_api.php:217]        🔍 Making API request to: https://87.110.183.186:443/api/validator/discount/tariff
[2026-05-27 21:02:10] [validator_api.php:217]        With payload: {"API_KEY":"e125****************************************2b38","PlateNumber":"AA621","PartnerID":0,"UID":"SEM_01","DiscountAmount":102}
[2026-05-27 21:02:10] [validator_api.php:217]        tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 21:02:10] [validator_api.php:217]        API Response Code: 200
[2026-05-27 21:02:10] [validator_api.php:417]        API Response: {"Successful":true,"CarFoundInParking":true,"NewFee":300,"ResponseDescription":null}
[2026-05-27 21:02:10] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:10] [awaiting_discount.php:97]     Answering callback query: 1440939193989209242
[2026-05-27 21:02:11] [awaiting_discount.php:101]    Deleting message: 171
[2026-05-27 21:02:11] [awaiting_discount.php:101]    ℹ️ Message deleted successfully
[2026-05-27 21:02:11] [helpers.php:587]              Sending message content: ✅   REDUCED TARIFF APPLIED
[2026-05-27 21:02:11] [awaiting_discount.php:104]    Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 21:02:11] [awaiting_discount.php:104]    Message sent successfully (ID: 172)
[2026-05-27 21:02:11] [awaiting_discount.php:116]    Sending message content: 💰   Current fee: *€3.00*
[2026-05-27 21:02:11] [awaiting_discount.php:116]    Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 21:02:11] [awaiting_discount.php:116]    Message sent successfully (ID: 173)
[2026-05-27 21:02:11] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 21:02:11] [awaiting_discount.php:124]    Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Enter a license plate:
[2026-05-27 21:02:11] [awaiting_discount.php:124]    Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 21:02:12] [awaiting_discount.php:124]    Message sent successfully (ID: 174)
[2026-05-27 21:02:12] [awaiting_discount.php:126]    ✅ Special tariff applied: 102
[2026-05-27 21:02:25] [unknown:?]                     
[2026-05-27 21:02:25] [unknown:?]                    =======================  New message =======================
[2026-05-27 21:02:25] [unknown:?]                    Data: {
    "update_id": 900328214,
    "message": {
        "message_id": 175,
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8925429392,
            "type": "private"
        },
        "date": 1779904945,
        "text": "Aa621"
    }
}
[2026-05-27 21:02:25] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-27 21:02:25] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-27 21:02:25] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-27 21:02:25] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-27 21:02:25] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:25] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-27 21:02:25] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:25] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-27 21:02:25] [telegram.php:628]             🚗 Validating car number: AA621 for SEMARAH
[2026-05-27 21:02:25] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:25] [helpers.php:1089]             ✅ API key is active
[2026-05-27 21:02:25] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-27 21:02:25] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-27 21:02:25] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:25] [helpers.php:948]              ✅ Found UID for API key: SEM_01
[2026-05-27 21:02:25] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:25] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-27 21:02:25] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-27 21:02:25] [validator_api.php:56]         With payload: {"API_KEY":"e125****************************************2b38","PlateNumber":"AA621","UID":"SEM_01","PartnerID":0}
[2026-05-27 21:02:25] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-27 21:02:25] [validator_api.php:56]         API Response Code: 200
[2026-05-27 21:02:25] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"AA621","CheckInTimeStamp":"20260527T190035+03:00","CurrentFee":"300","NextTimeSlice":"20260527T220035+03:00","ClientGroup":"0","CurrentTid":"102","BadgeState":null},"ErrorDescription":null}
[2026-05-27 21:02:25] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:25] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 21:02:25] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 21:02:25] [validator_api.php:70]         ❌ PublicGroupID not found for API key: e1257a2dfb1c30ad279f722552d85340f43f503578a62b38
[2026-05-27 21:02:25] [awaiting_car_number.php:121]  ✅ Car number validated successfully: AA621
[2026-05-27 21:02:25] [awaiting_car_number.php:134]  Sending message content: 🚗   *AA621    (G0 : T102)*🕒   Check-in: *2026-05-27 19:00*💰   Current fee: *€3.00*
[2026-05-27 21:02:25] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 21:02:25] [awaiting_car_number.php:134]  Message sent successfully (ID: 176)
[2026-05-27 21:02:25] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:25] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-27 21:02:25] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-27 21:02:25] [awaiting_car_number.php:153]  ❌ PublicGroupID not found for API key: e1257a2dfb1c30ad279f722552d85340f43f503578a62b38
[2026-05-27 21:02:25] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-27 21:02:25] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:25] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "true" for API key
[2026-05-27 21:02:25] [awaiting_car_number.php:163]  🚫 NoDiscountButtons flag is set for this API key - skipping discount buttons
[2026-05-27 21:02:25] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:25] [awaiting_car_number.php:169]  🚫 Hiding special tariff button: CurrentTid=102 equals GID+100=102
[2026-05-27 21:02:25] [awaiting_car_number.php:169]  ℹ️ No time/sum discount buttons available, only service buttons (validate/cancel/our customer) will be shown.
[2026-05-27 21:02:25] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-27 21:02:25] [awaiting_car_number.php:169]  Checking PublicGroupID for 'Our Customer' button. public_group_id: null, plate_number: AA621
[2026-05-27 21:02:25] [awaiting_car_number.php:169]  ❌ Not adding 'Our Customer' button - PublicGroupID is null
[2026-05-27 21:02:25] [awaiting_car_number.php:208]  Sending message content: Select pass duration for: *AA621*
[2026-05-27 21:02:25] [awaiting_car_number.php:208]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-27 21:02:25] [awaiting_car_number.php:208]  Message sent successfully (ID: 177)
[2026-05-28 08:57:31] [unknown:?]                     
[2026-05-28 08:57:31] [unknown:?]                    =======================  New message =======================
[2026-05-28 08:57:31] [unknown:?]                    Data: {
    "update_id": 900328215,
    "message": {
        "message_id": 178,
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8925429392,
            "type": "private"
        },
        "date": 1779947850,
        "text": "NV2149"
    }
}
[2026-05-28 08:57:31] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-28 08:57:31] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-28 08:57:31] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-28 08:57:31] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-28 08:57:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 08:57:31] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-28 08:57:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 08:57:31] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-28 08:57:31] [telegram.php:628]             🚗 Validating car number: NV2149 for SEMARAH
[2026-05-28 08:57:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 08:57:31] [helpers.php:1089]             ✅ API key is active
[2026-05-28 08:57:31] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-28 08:57:31] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-28 08:57:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 08:57:31] [helpers.php:948]              ✅ Found UID for API key: SEM_01
[2026-05-28 08:57:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 08:57:31] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-28 08:57:31] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-28 08:57:31] [validator_api.php:56]         With payload: {"API_KEY":"e125****************************************2b38","PlateNumber":"NV2149","UID":"SEM_01","PartnerID":0}
[2026-05-28 08:57:31] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-28 08:57:31] [validator_api.php:56]         API Response Code: 200
[2026-05-28 08:57:31] [validator_api.php:56]         API Response: {"Present":false,"VehicleInfo":null,"ErrorDescription":"Plate not found in parking"}
[2026-05-28 08:57:31] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 08:57:31] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-28 08:57:31] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-28 08:57:31] [validator_api.php:70]         ❌ PublicGroupID not found for API key: e1257a2dfb1c30ad279f722552d85340f43f503578a62b38
[2026-05-28 08:57:31] [awaiting_car_number.php:220]  ❌ Car number not found: NV2149
[2026-05-28 08:57:31] [helpers.php:587]              Sending message content: ❌   Car *NV2149* is NOT found in Semarah Hotel Lielupe parking.
[2026-05-28 08:57:31] [awaiting_car_number.php:221]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 08:57:31] [awaiting_car_number.php:221]  Message sent successfully (ID: 179)
[2026-05-28 08:57:31] [awaiting_car_number.php:240]  Sending message content: 🚙   Enter a license plate:
[2026-05-28 08:57:31] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 08:57:32] [awaiting_car_number.php:240]  Message sent successfully (ID: 180)
[2026-05-28 09:11:22] [unknown:?]                     
[2026-05-28 09:11:22] [unknown:?]                    =======================  New message =======================
[2026-05-28 09:11:22] [unknown:?]                    Data: {
    "update_id": 900328216,
    "message": {
        "message_id": 181,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1779948682,
        "text": "Od950"
    }
}
[2026-05-28 09:11:22] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-28 09:11:22] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-28 09:11:22] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-28 09:11:22] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-28 09:11:22] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:11:22] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-28 09:11:22] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:11:22] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-28 09:11:22] [telegram.php:628]             🚗 Validating car number: OD950 for SEMARAH
[2026-05-28 09:11:22] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:11:22] [helpers.php:1089]             ✅ API key is active
[2026-05-28 09:11:22] [validator_api.php:288]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-28 09:11:22] [validator_api.php:333]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-28 09:11:22] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:11:22] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-28 09:11:22] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:11:22] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-28 09:11:22] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-28 09:11:22] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"OD950","UID":"HIP_01","PartnerID":2}
[2026-05-28 09:11:22] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-28 09:11:23] [validator_api.php:56]         API Response Code: 200
[2026-05-28 09:11:23] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"OD950","CheckInTimeStamp":"20260528T085902+03:00","CurrentFee":"0","NextTimeSlice":"20260528T091402+03:00","ClientGroup":"0","CurrentTid":"1","BadgeState":null},"ErrorDescription":null}
[2026-05-28 09:11:23] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:11:23] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-28 09:11:23] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-28 09:11:23] [helpers.php:1165]             ✅ Found PublicGroupID in direct format: 0
[2026-05-28 09:11:23] [validator_api.php:74]         ✅ Found PublicGroupID: 0 for API key. Adding to response.
[2026-05-28 09:11:23] [awaiting_car_number.php:121]  ✅ Car number validated successfully: OD950
[2026-05-28 09:11:23] [awaiting_car_number.php:134]  Sending message content: 🚗   *OD950    (G0 : T1)*🕒   Въезд: *2026-05-28 08:59*💰   Текущая сумма: *€0.00*
[2026-05-28 09:11:23] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 09:11:23] [awaiting_car_number.php:134]  Message sent successfully (ID: 182)
[2026-05-28 09:11:23] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:11:23] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-28 09:11:23] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-28 09:11:23] [helpers.php:1165]             ✅ Found PublicGroupID in direct format: 0
[2026-05-28 09:11:23] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-28 09:11:23] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:11:23] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "false" for API key
[2026-05-28 09:11:23] [validator_api.php:143]        ✅ Found discounts: []
[2026-05-28 09:11:23] [awaiting_car_number.php:163]  ❌ No valid discounts found after parsing
[2026-05-28 09:11:23] [awaiting_car_number.php:189]  Sending message content: Нет доступных скидок!
[2026-05-28 09:11:23] [awaiting_car_number.php:189]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 09:11:23] [awaiting_car_number.php:189]  Message sent successfully (ID: 183)
[2026-05-28 09:11:23] [awaiting_car_number.php:190]  Sending message content: 🚙   Введите номер автомобиля:
[2026-05-28 09:11:23] [awaiting_car_number.php:190]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 09:11:23] [awaiting_car_number.php:190]  Message sent successfully (ID: 184)
[2026-05-28 09:57:24] [unknown:?]                     
[2026-05-28 09:57:24] [unknown:?]                    =======================  New message =======================
[2026-05-28 09:57:24] [unknown:?]                    Data: {
    "update_id": 900328217,
    "message": {
        "message_id": 185,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1779951443,
        "text": "Od950"
    }
}
[2026-05-28 09:57:24] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-28 09:57:24] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-28 09:57:24] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-28 09:57:24] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-28 09:57:24] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:57:24] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-28 09:57:24] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:57:24] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-28 09:57:24] [telegram.php:628]             🚗 Validating car number: OD950 for SEMARAH
[2026-05-28 09:57:24] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:57:24] [helpers.php:1089]             ✅ API key is active
[2026-05-28 09:57:24] [validator_api.php:299]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-28 09:57:24] [validator_api.php:344]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-28 09:57:24] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:57:24] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-28 09:57:24] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:57:24] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-28 09:57:24] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-28 09:57:24] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"OD950","UID":"HIP_01","PartnerID":2}
[2026-05-28 09:57:24] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-28 09:57:24] [validator_api.php:56]         API Response Code: 200
[2026-05-28 09:57:24] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"OD950","CheckInTimeStamp":"20260528T085902+03:00","CurrentFee":"150","NextTimeSlice":"20260528T095902+03:00","ClientGroup":"0","CurrentTid":"1","BadgeState":null},"ErrorDescription":null}
[2026-05-28 09:57:24] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:57:24] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-28 09:57:24] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-28 09:57:24] [helpers.php:1165]             ✅ Found PublicGroupID in direct format: 0
[2026-05-28 09:57:24] [validator_api.php:74]         ✅ Found PublicGroupID: 0 for API key. Adding to response.
[2026-05-28 09:57:24] [awaiting_car_number.php:121]  ✅ Car number validated successfully: OD950
[2026-05-28 09:57:24] [awaiting_car_number.php:134]  Sending message content: 🚗   *OD950    (G0 : T1)*🕒   Въезд: *2026-05-28 08:59*💰   Текущая сумма: *€1.50*
[2026-05-28 09:57:24] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 09:57:24] [awaiting_car_number.php:134]  Message sent successfully (ID: 186)
[2026-05-28 09:57:24] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:57:24] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-28 09:57:24] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":0,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-28 09:57:24] [helpers.php:1165]             ✅ Found PublicGroupID in direct format: 0
[2026-05-28 09:57:24] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-28 09:57:24] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:57:24] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "false" for API key
[2026-05-28 09:57:24] [validator_api.php:154]        ✅ Found discounts: {"time":[60,120,180,360,720,1440]}
[2026-05-28 09:57:24] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:57:24] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:57:24] [awaiting_car_number.php:169]  Checking PublicGroupID for 'Our Customer' button. public_group_id: 0, plate_number: OD950
[2026-05-28 09:57:24] [awaiting_car_number.php:208]  Sending message content: Укажите скидку: *OD950*
[2026-05-28 09:57:24] [awaiting_car_number.php:208]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 09:57:24] [awaiting_car_number.php:208]  Message sent successfully (ID: 187)
[2026-05-28 09:59:46] [unknown:?]                     
[2026-05-28 09:59:46] [unknown:?]                    =======================  New message =======================
[2026-05-28 09:59:46] [unknown:?]                    Data: {
    "update_id": 900328218,
    "callback_query": {
        "id": "3683081552503787776",
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "first_name": "DMZ",
            "username": "DmCountry",
            "language_code": "en"
        },
        "message": {
            "message_id": 187,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 5152501544,
                "first_name": "DMZ",
                "username": "DmCountry",
                "type": "private"
            },
            "date": 1779951444,
            "text": "Укажите скидку: OD950",
            "entities": [
                {
                    "offset": 16,
                    "length": 5,
                    "type": "bold"
                }
            ],
            "reply_markup": {
                "inline_keyboard": [
                    [
                        {
                            "text": "⏱️ 1h",
                            "callback_data": "discount|time|60"
                        },
                        {
                            "text": "⏱️ 2h",
                            "callback_data": "discount|time|120"
                        },
                        {
                            "text": "⏱️ 3h",
                            "callback_data": "discount|time|180"
                        }
                    ],
                    [
                        {
                            "text": "⏱️ 6h",
                            "callback_data": "discount|time|360"
                        },
                        {
                            "text": "⏱️ 12h",
                            "callback_data": "discount|time|720"
                        },
                        {
                            "text": "⏱️ 24h",
                            "callback_data": "discount|time|1440"
                        }
                    ],
                    [
                        {
                            "text": "✓   ЛЬГОТНЫЙ ТАРИФ",
                            "callback_data": "discount|tariff|0"
                        }
                    ],
                    [
                        {
                            "text": "🌟 НАШ КЛИЕНТ",
                            "callback_data": "changegroup|OD950|0"
                        }
                    ],
                    [
                        {
                            "text": "❌ ОТМЕНА",
                            "callback_data": "cancel_discount"
                        }
                    ]
                ]
            }
        },
        "chat_instance": "3018575112809351544",
        "data": "discount|tariff|0"
    }
}
[2026-05-28 09:59:46] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-28 09:59:46] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-28 09:59:46] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-28 09:59:46] [unknown:?]                    🔄 Processing callback query: discount|tariff|0
[2026-05-28 09:59:46] [telegram.php:515]             Processing discount callback: discount|tariff|0
[2026-05-28 09:59:46] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:59:46] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-28 09:59:46] [awaiting_discount.php:48]     🔄 Applying tariff discount of 0 to plate OD950
[2026-05-28 09:59:46] [validator_api.php:299]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-28 09:59:46] [validator_api.php:344]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-28 09:59:46] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:59:46] [awaiting_discount.php:48]     Using GID+100 as discount_value: 101
[2026-05-28 09:59:46] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:59:46] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-28 09:59:46] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:59:46] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-28 09:59:46] [validator_api.php:228]        🔍 Making API request to: https://87.110.183.186:443/api/validator/discount/tariff
[2026-05-28 09:59:46] [validator_api.php:228]        With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"OD950","PartnerID":2,"UID":"HIP_01","DiscountAmount":101}
[2026-05-28 09:59:46] [validator_api.php:228]        tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-28 09:59:46] [validator_api.php:228]        API Response Code: 200
[2026-05-28 09:59:46] [validator_api.php:428]        API Response: {"Successful":true,"CarFoundInParking":true,"NewFee":150,"ResponseDescription":null}
[2026-05-28 09:59:46] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 09:59:46] [awaiting_discount.php:97]     Answering callback query: 3683081552503787776
[2026-05-28 09:59:46] [awaiting_discount.php:101]    Deleting message: 187
[2026-05-28 09:59:46] [awaiting_discount.php:101]    ℹ️ Message deleted successfully
[2026-05-28 09:59:46] [helpers.php:587]              Sending message content: ✅   СПЕЦТАРИФ ПРИМЕНЕН
[2026-05-28 09:59:46] [awaiting_discount.php:104]    Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 09:59:47] [awaiting_discount.php:104]    Message sent successfully (ID: 188)
[2026-05-28 09:59:47] [awaiting_discount.php:116]    Sending message content: 💰   К оплате: *€1.50*
[2026-05-28 09:59:47] [awaiting_discount.php:116]    Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 09:59:47] [awaiting_discount.php:116]    Message sent successfully (ID: 189)
[2026-05-28 09:59:47] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-28 09:59:47] [awaiting_discount.php:124]    Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Введите номер автомобиля:
[2026-05-28 09:59:47] [awaiting_discount.php:124]    Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 09:59:47] [awaiting_discount.php:124]    Message sent successfully (ID: 190)
[2026-05-28 09:59:47] [awaiting_discount.php:126]    ✅ Special tariff applied: 101
[2026-05-28 10:09:27] [unknown:?]                     
[2026-05-28 10:09:27] [unknown:?]                    =======================  New message =======================
[2026-05-28 10:09:27] [unknown:?]                    Data: {
    "update_id": 900328219,
    "message": {
        "message_id": 191,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1779952167,
        "text": "Od950"
    }
}
[2026-05-28 10:09:27] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-28 10:09:27] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-28 10:09:27] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-28 10:09:27] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-28 10:09:27] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 10:09:27] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-28 10:09:27] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 10:09:27] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-28 10:09:27] [telegram.php:628]             🚗 Validating car number: OD950 for SEMARAH
[2026-05-28 10:09:27] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 10:09:27] [helpers.php:1089]             ✅ API key is active
[2026-05-28 10:09:27] [validator_api.php:299]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-28 10:09:27] [validator_api.php:344]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-28 10:09:27] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 10:09:27] [helpers.php:948]              ✅ Found UID for API key: HIP_01
[2026-05-28 10:09:27] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 10:09:27] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-28 10:09:27] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-28 10:09:27] [validator_api.php:56]         With payload: {"API_KEY":"5fb2****************************************980f","PlateNumber":"OD950","UID":"HIP_01","PartnerID":2}
[2026-05-28 10:09:27] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-28 10:09:28] [validator_api.php:56]         API Response Code: 200
[2026-05-28 10:09:28] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"OD950","CheckInTimeStamp":"20260528T085902+03:00","CurrentFee":"300","NextTimeSlice":"20260528T105902+03:00","ClientGroup":"0","CurrentTid":"101","BadgeState":null},"ErrorDescription":null}
[2026-05-28 10:09:28] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 10:09:28] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-28 10:09:28] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-28 10:09:28] [validator_api.php:70]         ❌ PublicGroupID not found for API key: 5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f
[2026-05-28 10:09:28] [awaiting_car_number.php:121]  ✅ Car number validated successfully: OD950
[2026-05-28 10:09:28] [awaiting_car_number.php:134]  Sending message content: 🚗   *OD950    (G0 : T101)*🕒   Въезд: *2026-05-28 08:59*💰   Текущая сумма: *€3.00*
[2026-05-28 10:09:28] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 10:09:28] [awaiting_car_number.php:134]  Message sent successfully (ID: 192)
[2026-05-28 10:09:28] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 10:09:28] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-28 10:09:28] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-28 10:09:28] [awaiting_car_number.php:153]  ❌ PublicGroupID not found for API key: 5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f
[2026-05-28 10:09:28] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-28 10:09:28] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 10:09:28] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "false" for API key
[2026-05-28 10:09:28] [validator_api.php:154]        ✅ Found discounts: {"time":[60,120,180,360,720,1440]}
[2026-05-28 10:09:28] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 10:09:28] [awaiting_car_number.php:169]  🚫 Hiding special tariff button: CurrentTid=101 equals GID+100=101
[2026-05-28 10:09:28] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 10:09:28] [awaiting_car_number.php:169]  Checking PublicGroupID for 'Our Customer' button. public_group_id: null, plate_number: OD950
[2026-05-28 10:09:28] [awaiting_car_number.php:169]  ❌ Not adding 'Our Customer' button - PublicGroupID is null
[2026-05-28 10:09:28] [awaiting_car_number.php:208]  Sending message content: Укажите скидку: *OD950*
[2026-05-28 10:09:28] [awaiting_car_number.php:208]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 10:09:28] [awaiting_car_number.php:208]  Message sent successfully (ID: 193)
[2026-05-28 10:09:32] [unknown:?]                     
[2026-05-28 10:09:32] [unknown:?]                    =======================  New message =======================
[2026-05-28 10:09:32] [unknown:?]                    Data: {
    "update_id": 900328220,
    "callback_query": {
        "id": "3683081554270236141",
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "first_name": "DMZ",
            "username": "DmCountry",
            "language_code": "en"
        },
        "message": {
            "message_id": 193,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 5152501544,
                "first_name": "DMZ",
                "username": "DmCountry",
                "type": "private"
            },
            "date": 1779952168,
            "text": "Укажите скидку: OD950",
            "entities": [
                {
                    "offset": 16,
                    "length": 5,
                    "type": "bold"
                }
            ],
            "reply_markup": {
                "inline_keyboard": [
                    [
                        {
                            "text": "⏱️ 1h",
                            "callback_data": "discount|time|60"
                        },
                        {
                            "text": "⏱️ 2h",
                            "callback_data": "discount|time|120"
                        },
                        {
                            "text": "⏱️ 3h",
                            "callback_data": "discount|time|180"
                        }
                    ],
                    [
                        {
                            "text": "⏱️ 6h",
                            "callback_data": "discount|time|360"
                        },
                        {
                            "text": "⏱️ 12h",
                            "callback_data": "discount|time|720"
                        },
                        {
                            "text": "⏱️ 24h",
                            "callback_data": "discount|time|1440"
                        }
                    ],
                    [
                        {
                            "text": "❌ ОТМЕНА",
                            "callback_data": "cancel_discount"
                        }
                    ]
                ]
            }
        },
        "chat_instance": "3018575112809351544",
        "data": "cancel_discount"
    }
}
[2026-05-28 10:09:32] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-28 10:09:32] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-28 10:09:32] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-28 10:09:32] [unknown:?]                    🔄 Processing callback query: cancel_discount
[2026-05-28 10:09:32] [telegram.php:420]             Deleting message: 193
[2026-05-28 10:09:32] [telegram.php:420]             ℹ️ Message deleted successfully
[2026-05-28 10:09:32] [telegram.php:423]             Answering callback query: 3683081554270236141
[2026-05-28 10:09:32] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-28 10:09:32] [telegram.php:427]             Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Введите номер автомобиля:
[2026-05-28 10:09:32] [telegram.php:427]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 10:09:32] [telegram.php:427]             Message sent successfully (ID: 194)
[2026-05-28 10:09:32] [unknown:?]                    User canceled discount selection
[2026-05-28 10:09:36] [unknown:?]                     
[2026-05-28 10:09:36] [unknown:?]                    =======================  New message =======================
[2026-05-28 10:09:36] [unknown:?]                    Data: {
    "update_id": 900328221,
    "message": {
        "message_id": 195,
        "from": {
            "id": 5152501544,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 5152501544,
            "username": "DmCountry",
            "type": "private"
        },
        "date": 1779952176,
        "text": "!!"
    }
}
[2026-05-28 10:09:36] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-28 10:09:36] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-28 10:09:36] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-28 10:09:36] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-28 10:09:36] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 10:09:36] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-28 10:09:36] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 10:09:36] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-28 10:09:36] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 10:09:36] [helpers.php:1208]             ✅ Found parameter 'BarrierControl' = true for API key
[2026-05-28 10:09:36] [awaiting_car_number.php:40]   🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-28 10:09:36] [helpers.php:1313]             🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-28 10:09:36] [helpers.php:1276]             🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-28 10:09:36] [helpers.php:1300]             ✅ Barrier URL [status] for 'entry': https://:5003/api/barrier/status
[2026-05-28 10:09:36] [helpers.php:1330]             🔍 Making API request to: https://:5003/api/barrier/status
[2026-05-28 10:09:36] [helpers.php:1330]             With payload: {"API_KEY":"5fb2****************************************980f","direction":"entry"}
[2026-05-28 10:09:36] [helpers.php:1330]             tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-28 10:09:36] [helpers.php:1330]             ❌ API request failed: file_get_contents(https://:5003/api/barrier/status): Failed to open stream: operation failed
[2026-05-28 10:09:36] [awaiting_car_number.php:54]   ⚠️ Barrier status unknown for entry
[2026-05-28 10:09:36] [helpers.php:1313]             🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-28 10:09:36] [helpers.php:1276]             🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-28 10:09:36] [helpers.php:1300]             ✅ Barrier URL [status] for 'exit': https://:5003/api/barrier/status
[2026-05-28 10:09:36] [helpers.php:1330]             🔍 Making API request to: https://:5003/api/barrier/status
[2026-05-28 10:09:36] [helpers.php:1330]             With payload: {"API_KEY":"5fb2****************************************980f","direction":"exit"}
[2026-05-28 10:09:36] [helpers.php:1330]             tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-28 10:09:36] [helpers.php:1330]             ❌ API request failed: file_get_contents(https://:5003/api/barrier/status): Failed to open stream: operation failed
[2026-05-28 10:09:36] [awaiting_car_number.php:58]   ⚠️ Barrier status unknown for exit
[2026-05-28 10:09:36] [telegram.php:628]             ⚡ Barrier statuses - entry: unknown, exit: unknown
[2026-05-28 10:09:36] [awaiting_car_number.php:68]   Sending message content: Выберите действие со шлагбаумом:
[2026-05-28 10:09:36] [awaiting_car_number.php:68]   Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 10:09:36] [awaiting_car_number.php:68]   Message sent successfully (ID: 196)
[2026-05-28 11:56:53] [unknown:?]                     
[2026-05-28 11:56:53] [unknown:?]                    =======================  New message =======================
[2026-05-28 11:56:53] [unknown:?]                    Data: {
    "update_id": 900328222,
    "message": {
        "message_id": 197,
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8925429392,
            "type": "private"
        },
        "date": 1779958612,
        "text": "JM141"
    }
}
[2026-05-28 11:56:53] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-28 11:56:53] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-28 11:56:53] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-28 11:56:53] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-28 11:56:53] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 11:56:53] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-28 11:56:53] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 11:56:53] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-28 11:56:53] [telegram.php:628]             🚗 Validating car number: JM141 for SEMARAH
[2026-05-28 11:56:53] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 11:56:53] [helpers.php:1089]             ✅ API key is active
[2026-05-28 11:56:53] [validator_api.php:299]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-28 11:56:53] [validator_api.php:344]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-28 11:56:53] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 11:56:53] [helpers.php:948]              ✅ Found UID for API key: SEM_01
[2026-05-28 11:56:53] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 11:56:53] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-28 11:56:53] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-28 11:56:53] [validator_api.php:56]         With payload: {"API_KEY":"e125****************************************2b38","PlateNumber":"JM141","UID":"SEM_01","PartnerID":0}
[2026-05-28 11:56:53] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-28 11:56:53] [validator_api.php:56]         API Response Code: 200
[2026-05-28 11:56:53] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"JM141","CheckInTimeStamp":"20260528T114440+03:00","CurrentFee":"0","NextTimeSlice":"20260528T115940+03:00","ClientGroup":"0","CurrentTid":"1","BadgeState":null},"ErrorDescription":null}
[2026-05-28 11:56:53] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 11:56:53] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-28 11:56:53] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-28 11:56:53] [validator_api.php:70]         ❌ PublicGroupID not found for API key: e1257a2dfb1c30ad279f722552d85340f43f503578a62b38
[2026-05-28 11:56:53] [awaiting_car_number.php:121]  ✅ Car number validated successfully: JM141
[2026-05-28 11:56:53] [awaiting_car_number.php:134]  Sending message content: 🚗   *JM141    (G0 : T1)*🕒   Check-in: *2026-05-28 11:44*💰   Current fee: *€0.00*
[2026-05-28 11:56:53] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 11:56:54] [awaiting_car_number.php:134]  Message sent successfully (ID: 198)
[2026-05-28 11:56:54] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 11:56:54] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-28 11:56:54] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-28 11:56:54] [awaiting_car_number.php:153]  ❌ PublicGroupID not found for API key: e1257a2dfb1c30ad279f722552d85340f43f503578a62b38
[2026-05-28 11:56:54] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-28 11:56:54] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 11:56:54] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "true" for API key
[2026-05-28 11:56:54] [awaiting_car_number.php:163]  🚫 NoDiscountButtons flag is set for this API key - skipping discount buttons
[2026-05-28 11:56:54] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 11:56:54] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 11:56:54] [awaiting_car_number.php:169]  Checking PublicGroupID for 'Our Customer' button. public_group_id: null, plate_number: JM141
[2026-05-28 11:56:54] [awaiting_car_number.php:169]  ❌ Not adding 'Our Customer' button - PublicGroupID is null
[2026-05-28 11:56:54] [awaiting_car_number.php:208]  Sending message content: Select a discount: *JM141*
[2026-05-28 11:56:54] [awaiting_car_number.php:208]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 11:56:54] [awaiting_car_number.php:208]  Message sent successfully (ID: 199)
[2026-05-28 11:57:01] [unknown:?]                     
[2026-05-28 11:57:01] [unknown:?]                    =======================  New message =======================
[2026-05-28 11:57:01] [unknown:?]                    Data: {
    "update_id": 900328223,
    "callback_query": {
        "id": "1440939196570388608",
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "first_name": "Semarah",
            "last_name": "SPA",
            "language_code": "en"
        },
        "message": {
            "message_id": 199,
            "from": {
                "id": 8458629156,
                "is_bot": true,
                "first_name": "SemarahLielupeParking",
                "username": "SemarahLielupeParkingBot"
            },
            "chat": {
                "id": 8925429392,
                "first_name": "Semarah",
                "last_name": "SPA",
                "type": "private"
            },
            "date": 1779958614,
            "text": "Select a discount: JM141",
            "entities": [
                {
                    "offset": 19,
                    "length": 5,
                    "type": "bold"
                }
            ],
            "reply_markup": {
                "inline_keyboard": [
                    [
                        {
                            "text": "✓   APPLY REDUCED TARIFF",
                            "callback_data": "discount|tariff|0"
                        }
                    ],
                    [
                        {
                            "text": "❌ CANCEL",
                            "callback_data": "cancel_discount"
                        }
                    ]
                ]
            }
        },
        "chat_instance": "-6059999772737737528",
        "data": "cancel_discount"
    }
}
[2026-05-28 11:57:01] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-28 11:57:01] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-28 11:57:01] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-28 11:57:01] [unknown:?]                    🔄 Processing callback query: cancel_discount
[2026-05-28 11:57:01] [telegram.php:420]             Deleting message: 199
[2026-05-28 11:57:01] [telegram.php:420]             ℹ️ Message deleted successfully
[2026-05-28 11:57:01] [telegram.php:423]             Answering callback query: 1440939196570388608
[2026-05-28 11:57:01] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-28 11:57:01] [telegram.php:427]             Sending message content: 🅿️   Semarah Hotel Lielupe   🅿️🚙   Enter a license plate:
[2026-05-28 11:57:01] [telegram.php:427]             Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 11:57:01] [telegram.php:427]             Message sent successfully (ID: 200)
[2026-05-28 11:57:01] [unknown:?]                    User canceled discount selection
[2026-05-28 12:08:43] [unknown:?]                     
[2026-05-28 12:08:43] [unknown:?]                    =======================  New message =======================
[2026-05-28 12:08:43] [unknown:?]                    Data: {
    "update_id": 900328224,
    "message": {
        "message_id": 201,
        "from": {
            "id": 8758879400,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8758879400,
            "type": "private"
        },
        "date": 1779959322,
        "text": "Kj919"
    }
}
[2026-05-28 12:08:43] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-28 12:08:43] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-28 12:08:43] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-28 12:08:43] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-28 12:08:43] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 12:08:43] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":true,"contractId":2} for API key
[2026-05-28 12:08:43] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 12:08:43] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-28 12:08:43] [telegram.php:628]             🚗 Validating car number: KJ919 for SEMARAH
[2026-05-28 12:08:43] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 12:08:43] [helpers.php:1089]             ✅ API key is active
[2026-05-28 12:08:43] [validator_api.php:299]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-28 12:08:43] [validator_api.php:344]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-28 12:08:43] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 12:08:43] [helpers.php:948]              ✅ Found UID for API key: SEM_02
[2026-05-28 12:08:43] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 12:08:43] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 2 for API key
[2026-05-28 12:08:43] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-28 12:08:43] [validator_api.php:56]         With payload: {"API_KEY":"19b3****************************************fdf8","PlateNumber":"KJ919","UID":"SEM_02","PartnerID":2}
[2026-05-28 12:08:43] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-28 12:08:43] [validator_api.php:56]         API Response Code: 200
[2026-05-28 12:08:43] [validator_api.php:56]         API Response: {"Present":true,"VehicleInfo":{"PlateNumber":"KE919","CheckInTimeStamp":"20260528T113100+03:00","CurrentFee":"0","NextTimeSlice":"20260529T113100+03:00","ClientGroup":"2","CurrentTid":"2","BadgeState":"VALID"},"ErrorDescription":null}
[2026-05-28 12:08:43] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 12:08:43] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-28 12:08:43] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-28 12:08:43] [validator_api.php:70]         ❌ PublicGroupID not found for API key: 19b37c807822133c655ce55f5534816158f78fe86033fdf8
[2026-05-28 12:08:43] [awaiting_car_number.php:121]  ✅ Car number validated successfully: KJ919
[2026-05-28 12:08:43] [awaiting_car_number.php:134]  Sending message content: 🚗   *KE919    (G2 : T2)  🟩*🕒   Iebraukšana: *2026-05-28 11:31*💰   Pašreizējā maksa: *€0.00*
[2026-05-28 12:08:43] [awaiting_car_number.php:134]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 12:08:44] [awaiting_car_number.php:134]  Message sent successfully (ID: 202)
[2026-05-28 12:08:44] [awaiting_car_number.php:138]  Sending message content: ➡️ Translation missing: plate_recognized: *KE919*
[2026-05-28 12:08:44] [awaiting_car_number.php:138]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 12:08:44] [awaiting_car_number.php:138]  ERROR: Failed to send message to Telegram
[2026-05-28 12:08:44] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 12:08:44] [awaiting_car_number.php:153]  🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-28 12:08:44] [awaiting_car_number.php:153]  API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-28 12:08:44] [awaiting_car_number.php:153]  ❌ PublicGroupID not found for API key: 19b37c807822133c655ce55f5534816158f78fe86033fdf8
[2026-05-28 12:08:44] [awaiting_car_number.php:163]  🔍 Getting discount options for subdomain: SEMARAH
[2026-05-28 12:08:44] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 12:08:44] [helpers.php:1208]             ✅ Found parameter 'NoDiscountButtons' = "false" for API key
[2026-05-28 12:08:44] [validator_api.php:154]        ✅ Found discounts: {"time":[60,120,180,360,720,1440]}
[2026-05-28 12:08:44] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 12:08:44] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-28 12:08:44] [awaiting_car_number.php:169]  Checking PublicGroupID for 'Our Customer' button. public_group_id: null, plate_number: KE919
[2026-05-28 12:08:44] [awaiting_car_number.php:169]  ❌ Not adding 'Our Customer' button - PublicGroupID is null
[2026-05-28 12:08:44] [telegram.php:628]             ℹ️ Solid pass button hidden: client group is not G0 (group: 2)
[2026-05-28 12:08:44] [awaiting_car_number.php:208]  Sending message content: Izvēlieties atlaidi: *KE919*
[2026-05-28 12:08:44] [awaiting_car_number.php:208]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-28 12:08:44] [awaiting_car_number.php:208]  Message sent successfully (ID: 203)
[2026-05-29 11:24:39] [unknown:?]                     
[2026-05-29 11:24:39] [unknown:?]                    =======================  New message =======================
[2026-05-29 11:24:39] [unknown:?]                    Data: {
    "update_id": 900328225,
    "message": {
        "message_id": 204,
        "from": {
            "id": 8925429392,
            "is_bot": false,
            "language_code": "en"
        },
        "chat": {
            "id": 8925429392,
            "type": "private"
        },
        "date": 1780043079,
        "text": "NFU56"
    }
}
[2026-05-29 11:24:39] [helpers.php:308]              🔐 Telegram token context set (incoming_object_code)
[2026-05-29 11:24:39] [telegram.php:94]              ✅ Scoped session loaded for object: SEM260501
[2026-05-29 11:24:39] [unknown:?]                    Telegram context source: incoming_object_code
[2026-05-29 11:24:39] [helpers.php:980]              ✅ Found object name for code SEM260501: Semarah Hotel Lielupe
[2026-05-29 11:24:39] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-29 11:24:39] [helpers.php:1208]             ✅ Found parameter 'solidDiscounts' = {"enabled":false,"contractId":0} for API key
[2026-05-29 11:24:39] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-29 11:24:39] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-29 11:24:39] [telegram.php:628]             🚗 Validating car number: NFU56 for SEMARAH
[2026-05-29 11:24:39] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-29 11:24:39] [helpers.php:1089]             ✅ API key is active
[2026-05-29 11:24:39] [validator_api.php:299]        🔍 Getting API server configuration for subdomain: SEMARAH
[2026-05-29 11:24:39] [validator_api.php:344]        Using validator API URL: https://87.110.183.186:443/api/validator/ (Protocol: https)
[2026-05-29 11:24:39] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-29 11:24:39] [helpers.php:948]              ✅ Found UID for API key: SEM_01
[2026-05-29 11:24:39] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-29 11:24:39] [helpers.php:1208]             ✅ Found parameter 'PartnerID' = 0 for API key
[2026-05-29 11:24:39] [validator_api.php:56]         🔍 Making API request to: https://87.110.183.186:443/api/validator/validate
[2026-05-29 11:24:39] [validator_api.php:56]         With payload: {"API_KEY":"e125****************************************2b38","PlateNumber":"NFU56","UID":"SEM_01","PartnerID":0}
[2026-05-29 11:24:39] [validator_api.php:56]         tls_ok: verify_on peer_name=87.110.183.186 cafile=/home7/hiparklv/validators-stage.hipark.lv/hipark-root-ca.crt
[2026-05-29 11:24:39] [validator_api.php:56]         API Response Code: 200
[2026-05-29 11:24:39] [validator_api.php:56]         API Response: {"Present":false,"VehicleInfo":null,"ErrorDescription":"Plate not found in parking"}
[2026-05-29 11:24:39] [helpers.php:702]              ✅ API keys loaded from MySQL for subdomain: SEMARAH
[2026-05-29 11:24:39] [validator_api.php:70]         🔍 Looking for PublicGroupID for API key in subdomain: SEMARAH
[2026-05-29 11:24:39] [validator_api.php:70]         API keys structure: {"5fb2a12c512d3ad01d0892c27098c07eae8e59997abc980f":{"UID":"HIP_01","GID":1,"name":"Dimitrijs","phone":"29275774","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"e1257a2dfb1c30ad279f722552d85340f43f503578a62b38":{"UID":"SEM_01","GID":2,"name":"SPA","phone":"26539902","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":0,"solidDiscounts":{"enabled":false,"contractId":0}},"19b37c807822133c655ce55f5534816158f78fe86033fdf8":{"UID":"SEM_02","GID":2,"name":"Ilona","phone":"28722751","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":true,"contractId":2}},"843bc368f59fb37a88b43231e987d7eb9e4951cff9d8cf92":{"UID":"SEM_03","GID":2,"name":"Reception","phone":"26108593","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"false","BarrierControl":false,"ValidateToShowTimeout":0,"NoDiscountButtons":"false","PartnerID":2,"solidDiscounts":{"enabled":false,"contractId":0}},"08ca340d083750173f539d81eb7b1ae4ce9ab9106cfe8da4":{"UID":"SEM_04","GID":2,"name":"Apsardze","phone":"22453528","countryPrefix":"371","status":"active","PublicGroupID":null,"Validate":"true","BarrierControl":true,"ValidateToShowTimeout":0,"NoDiscountButtons":"true","PartnerID":7,"solidDiscounts":{"enabled":true,"contractId":5}}}
[2026-05-29 11:24:39] [validator_api.php:70]         ❌ PublicGroupID not found for API key: e1257a2dfb1c30ad279f722552d85340f43f503578a62b38
[2026-05-29 11:24:39] [awaiting_car_number.php:220]  ❌ Car number not found: NFU56
[2026-05-29 11:24:39] [helpers.php:587]              Sending message content: ❌   Car *NFU56* is NOT found in Semarah Hotel Lielupe parking.
[2026-05-29 11:24:39] [awaiting_car_number.php:221]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-29 11:24:40] [awaiting_car_number.php:221]  Message sent successfully (ID: 205)
[2026-05-29 11:24:40] [awaiting_car_number.php:240]  Sending message content: 🚙   Enter a license plate:
[2026-05-29 11:24:40] [awaiting_car_number.php:240]  Telegram API request: https://api.telegram.org/bot***HIDDEN***/sendMessage
[2026-05-29 11:24:40] [awaiting_car_number.php:240]  Message sent successfully (ID: 206)
