axxie / dotfiles

0 stars 0 forks source link

Add telegram bot notification function #9

Open axxie opened 11 months ago

axxie commented 11 months 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.