axxie / dotfiles

0 stars 0 forks source link

Add telegram bot notification function #9

Open axxie opened 1 year ago

axxie commented 1 year ago

Example:

tn() {
    curl -s -X POST https://api.telegram.org/bot<token>/sendMessage -d chat_id=<chat id> -d text="$1"
}

tn means "Telegram notification". The function can be extended to support default message.