Fix: Initialize TelegramHelper before use
This commit is contained in:
@@ -30,6 +30,9 @@ class TelegramBotController
|
||||
public function webhook(Request $request, Response $response): Response
|
||||
{
|
||||
try {
|
||||
// Initialize TelegramHelper
|
||||
TelegramHelper::init();
|
||||
|
||||
// Get raw input
|
||||
$raw = $request->getBody()->getContents();
|
||||
TelegramHelper::log("RAW UPDATE: $raw");
|
||||
|
||||
Reference in New Issue
Block a user