Comments (6)
Try --file instead of --text
from debian-scripts.
i tried but i'm getting an error:
[Info] Using configuration file /etc/telegram-notify.conf
{"ok":false,"error_code":400,"description":"Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 41"}```
from debian-scripts.
first try with few characters
from debian-scripts.
what do you mean with few characters?
from debian-scripts.
It seems there is a problem with underscore character (openhab/openhab-addons#11691).
Do you have such character in your text ?
from debian-scripts.
ok i think i found the issue! i generate a log file with a simple script and the formatting of the print output seems to cause problems:
#!/usr/bin/env bash
declare -a mydisks=( $(command ls -1 /dev/ | grep -Ei "^sd[a-z]*$") )
for d in ${mydisks[@]} ; do
ISTGUT=$(command smartctl -H /dev/${d} | grep PASSED | wc -l)
NICHTGUT=$(command smartctl -H /dev/${d} | grep -i failed | wc -l)
if (( ISTGUT != 0 )) ; then
printf " /dev/${d} : $(tput setaf 2)Good$(tput sgr 0)\n"
elif (( NICHTGUT != 0 )) ; then
printf " /dev/${d} : $(tput setaf 1)Replace$(tput sgr 0)\n"
else
printf " /dev/${d} : $(tput setaf 3)Unknown$(tput sgr 0)\n"
fi
done
content of the generated file:
/dev/sda : ^[[32mGood^[(B^[[0m
/dev/sdb : ^[[32mGood^[(B^[[0m
/dev/sdc : ^[[32mGood^[(B^[[0m
/dev/sdd : ^[[32mGood^[(B^[[0m
/dev/sde : ^[[32mGood^[(B^[[0m
with plain text it works fine!
from debian-scripts.
Related Issues (15)
- telegram-notify error with text messages having odd number of underscores HOT 2
- #telegram URL with further info does not work HOT 1
- output not formatted correctly HOT 1
- [telegram-notify] username and the password for the socks5-server HOT 1
- [SOLVED] Script seems not to send the message HOT 1
- Use Telegram Notify into another script HOT 1
- Zoneminder Camera Wall HOT 7
- Error: Failed to start application: Could not connect to MySQL server. HOT 1
- Line breaks HOT 1
- telegram-notify document sending problem HOT 4
- adding location? HOT 2
- [telegram-notify] socks5 support HOT 2
- debian 9 doesn't display correct icon but \u2705 caracter HOT 2
- [telegram-notify] Bug for some messages HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from debian-scripts.