mirror of
https://github.com/v2board/v2board.git
synced 2025-02-11 16:00:27 +08:00
update telegram
This commit is contained in:
parent
83592d2f3f
commit
c5b56da958
@ -75,6 +75,10 @@ class TelegramController extends Controller
|
|||||||
$msg = $this->msg;
|
$msg = $this->msg;
|
||||||
if (!$msg->is_private) return;
|
if (!$msg->is_private) return;
|
||||||
$telegramService = new TelegramService();
|
$telegramService = new TelegramService();
|
||||||
$telegramService->sendMessage($msg->chat_id, "你可以使用以下命令进行操作:\n\n/bind 订阅地址 - 绑定你的账号", 'markdown');
|
$commands = [
|
||||||
|
'/bind 订阅地址 - 绑定你的' . config('v2board.app_name', 'V2Board') . '账号'
|
||||||
|
];
|
||||||
|
$text = implode(PHP_EOL, $commands);
|
||||||
|
$telegramService->sendMessage($msg->chat_id, "你可以使用以下命令进行操作:\n\n$text", 'markdown');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user