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