|
|
@@ -91,16 +91,18 @@ class Home extends Controller
|
|
|
// 'message_id' => $topMessage->getMessageId(),
|
|
|
// ]);
|
|
|
|
|
|
-
|
|
|
- $telegram->sendMessage([
|
|
|
- 'chat_id' => "7860483406",
|
|
|
- 'text' => '
|
|
|
- <table>
|
|
|
+$text = <<<EOF
|
|
|
+<table>
|
|
|
<tr><th>姓名</th><th>年龄</th></tr>
|
|
|
<tr><td>小明</td><td>18</td></tr>
|
|
|
<tr><td>小红</td><td>20</td></tr>
|
|
|
</table>
|
|
|
- ',
|
|
|
+EOF;
|
|
|
+
|
|
|
+
|
|
|
+ $telegram->sendMessage([
|
|
|
+ 'chat_id' => "7860483406",
|
|
|
+ 'text' => $text,
|
|
|
'parse_mode' => 'HTML'
|
|
|
]);
|
|
|
|