- Install telegram on desktop
- Message @botfather and then /newbot (give name, and other things)
- Create new channel and add the bot
- Get channel ID
curl -L https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/getUpdates
export telegram_bot_token='xxxxx'
export telegram_house_channel_id='xxxxx'
export telegram_channel_url="https://api.telegram.org/bot$telegram_bot_token/sendMessage"
function telegram_notification(){
curl -s -X POST $telegram_channel_url -d chat_id=$telegram_house_channel_id -d text="$(echo -e "[`hostname --fqdn`]: $@")"
}
telegram_notification 'FART'