Compare commits

...

2 Commits

Author SHA1 Message Date
schism 7ab899545a Merge branch 'web' 2021-03-05 16:32:45 +05:30
schism 92ce4cda8d Telegram message correction
- Shadow correction
2021-03-05 16:31:55 +05:30
2 changed files with 7 additions and 5 deletions

View File

@ -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) {

View File

@ -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)
}