mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update: telegram notify
This commit is contained in:
parent
f2e7ada947
commit
4ca1b9e8ff
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user