update: telegram notify

This commit is contained in:
Tokumeikoi 2020-10-20 23:11:59 +08:00
parent f2e7ada947
commit 4ca1b9e8ff

View File

@ -73,7 +73,7 @@ class TelegramController extends Controller
$obj->args = array_slice($text, 1); $obj->args = array_slice($text, 1);
$obj->chat_id = $data['message']['chat']['id']; $obj->chat_id = $data['message']['chat']['id'];
$obj->message_id = $data['message']['message_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']; $obj->text = $data['message']['text'];
if ($obj->message_type === 'reply') { if ($obj->message_type === 'reply') {
$obj->reply_text = $data['message']['reply_to_message']['text']; $obj->reply_text = $data['message']['reply_to_message']['text'];