fix: classify Telegram ticket replies by message id and record safe routing diagnostics
This commit is contained in:
1 parent
7622b49cb3
commit
5b643135e1
5 files changed
+50
-2
No files matched your search
@@ -35,6 +35,9 @@ class TelegramController extends Controller
|
||||
$data = $request->json()->all();
|
||||
|
||||
$this->formatMessage($data);
|
||||
if ($this->msg) {
|
||||
app(\App\Services\TelegramTickets\TicketBridge::class)->observeIncoming($this->msg->raw_message, (int) $this->msg->update_id);
|
||||
}
|
||||
$this->formatChatJoinRequest($data);
|
||||
$this->handle();
|
||||
}
|
||||
@@ -97,9 +100,9 @@ class TelegramController extends Controller
|
||||
'is_private' => $message['chat']['type'] === 'private',
|
||||
];
|
||||
|
||||
if (isset($message['reply_to_message']['text'])) {
|
||||
if (isset($message['reply_to_message']['message_id'])) {
|
||||
$this->msg->message_type = 'reply_message';
|
||||
$this->msg->reply_text = $message['reply_to_message']['text'];
|
||||
$this->msg->reply_text = $message['reply_to_message']['text'] ?? '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user