Replies: 1 comment
-
|
I have sent a PR with this fix. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I use a script to send messages thru telegram-send. Sometimes I have to send files as well. So, I would like to use the same script to send both messages. Now, I have that:
message="$1"
file="$2"
if [ "$file" ]; then
telegram-send "$message" --file "$file"
else
telegram-send "$message"
fi
I use in this way because it will generate an error if "$file" doesnt exist or is unacessible.
Maybe an update to ignore parameter "--file" if file has problems. What to you think?
Beta Was this translation helpful? Give feedback.
All reactions