Send a message with Telegram's bot API (for cronjobs and related)
Find a file
2023-05-07 12:40:47 -03:00
.gitignore gitignore: No guardar binarios 2022-09-09 21:51:21 -03:00
build.sh build.sh: Arreglar compilación estática 2022-09-09 21:54:39 -03:00
go.mod gitea.nulo.in/Nulo/telegram-bot-send-message 2023-05-07 12:40:47 -03:00
go.sum a 2022-09-09 21:45:41 -03:00
main.go Reintentar varias veces 2022-09-18 09:41:32 -03:00
readme.md Usar variables de env en vez de archivo json 2022-09-10 08:57:42 -03:00
upload.sh build.sh upload.sh 2022-09-09 21:51:14 -03:00

telegram-bot-send-message

Get token from @BotFather. Get chat id with a bot like @getmy_idbot.

Run

TELEGRAM_BOT_TOKEN=replace_with_token TELEGRAM_CHAT_ID=replace_with_chat_id telegram-bot-send-message "I hate computers."