Bark is a Bash script that allows you to send push notifications to various platforms such as Telegram, Bark, WeCom, Feishu, and Discord.
bark title msg channel(b|t|w|f|d)
send "title msg" to channel.
title
(optional): The title of the notification. The default title is hostname.msg
(optional): The content of the notification. The default content is current dir.channel
(optional): The default channel is Telegram. Others:b
for Barkt
for Telegramw
for WeChat/WeComf
for Feishu/Larkd
for Discord
barkrun xxxx
run xxx
command, save out to run.log, notify if command run failed.
bark
Send Hostname dir to telegram (default channel)
To send a notification with a custom title "hello" and message "test" to multiple channels, you can use the following command:
bark hello test btwfd
To send a notification after a long long time make:
make -j9; bark
- Install the Bark app on your iOS device.
- Replace
BARK_TOKEN
in script.
- Create a Telegram Bot by the official guide, Obtain the bot
token
. - Start chat with your bot, run
curl "https://api.telegram.org/botBOT_TOKEN/getUpdates"
get yourchat_id
. - Replace
TG_TOKEN
TG_CHAT_ID
.
- Get Webhook by official guide
- Refer here
- See official guide