Merge branch 'web'
This commit is contained in:
commit
7ab899545a
|
@ -6,13 +6,15 @@ class Telegram {
|
|||
}
|
||||
|
||||
function sendMessage($chatId, $text, $options = []) {
|
||||
|
||||
send_post("https://api.telegram.org/bot{$this->token}/sendMessage", [
|
||||
$text = str_replace(".", "\\.", $text);
|
||||
$text = str_replace("=", "\\=", $text);
|
||||
$text = str_replace("_", "\\_", $text);
|
||||
return send_post("https://api.telegram.org/bot{$this->token}/sendMessage", [
|
||||
"chat_id" => $chatId,
|
||||
"text" => $text,
|
||||
"parse_mode" => isset($options["parse_mode"])? $options["parse_mode"] : "MarkdownV2",
|
||||
"disable_web_page_preview" => isset($options["disable_web_page_preview"])? $options["disable_web_page_preview"] : false,
|
||||
]);
|
||||
]);
|
||||
}
|
||||
|
||||
function setWebhook($url) {
|
||||
|
|
|
@ -439,8 +439,8 @@ main#dashboard #schedule table {
|
|||
background-color: var(--color-primary-light);
|
||||
border-collapse: collapse;
|
||||
border-radius: 5px;
|
||||
margin: 20px 0;
|
||||
width: 100%;
|
||||
margin: 20px 40px 60px 40px;
|
||||
width: calc(100% - 80px);
|
||||
/* filter: drop-shadow(10px 10px 30px var(--color-primary-dark)); */
|
||||
box-shadow: 0 20px 40px rgba(0,0,0,0.2)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue