From 4ca1b9e8ff15974bcc08dae687822ae5c8e6ce8e Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Tue, 20 Oct 2020 23:11:59 +0800 Subject: [PATCH] update: telegram notify --- app/Http/Controllers/Guest/TelegramController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Guest/TelegramController.php b/app/Http/Controllers/Guest/TelegramController.php index cdb0b108..a1075cc7 100644 --- a/app/Http/Controllers/Guest/TelegramController.php +++ b/app/Http/Controllers/Guest/TelegramController.php @@ -73,7 +73,7 @@ class TelegramController extends Controller $obj->args = array_slice($text, 1); $obj->chat_id = $data['message']['chat']['id']; $obj->message_id = $data['message']['message_id']; - $obj->message_type = !isset($data['message']['reply_to_message']) ? 'send' : 'reply'; + $obj->message_type = !isset($data['message']['reply_to_message']['text']) ? 'send' : 'reply'; $obj->text = $data['message']['text']; if ($obj->message_type === 'reply') { $obj->reply_text = $data['message']['reply_to_message']['text'];