diff --git a/README.md b/README.md index 09fc982..9b9e888 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,34 @@ action "Send Default Message" { +## Environment variables + +* PHOTO - Optional. photo message +* DOCUMENT - Optional. document message +* STICKER - Optional. sticker message +* AUDIO - Optional. audio message +* VOICE - Optional. voice message +* LOCATION - Optional. location message +* VENUE - Optional. venue message +* VIDEO - Optional. video message +* DEBUG - Optional. enable debug mode + +### Example + +``` +action "Send photo message" { + uses = "appleboy/telegram-action@master" + secrets = [ + "TELEGRAM_TOKEN", + "TELEGRAM_TO", + ] + env = { + PHOTO = "tests/github.png" + } + args = "A new commit has been pushed." +} +``` + ## Secrets Getting started with [Telegram Bot API](https://core.telegram.org/bots/api). diff --git a/tests/audio.mp3 b/tests/audio.mp3 new file mode 100644 index 0000000..06b0284 Binary files /dev/null and b/tests/audio.mp3 differ diff --git a/tests/github-logo.png b/tests/github-logo.png new file mode 100644 index 0000000..8075d5d Binary files /dev/null and b/tests/github-logo.png differ diff --git a/tests/github.png b/tests/github.png new file mode 100644 index 0000000..1a7c0ac Binary files /dev/null and b/tests/github.png differ diff --git a/tests/gophercolor.png b/tests/gophercolor.png new file mode 100644 index 0000000..844fd5d Binary files /dev/null and b/tests/gophercolor.png differ diff --git a/tests/video.mp4 b/tests/video.mp4 new file mode 100644 index 0000000..a203d0c Binary files /dev/null and b/tests/video.mp4 differ diff --git a/tests/voice.ogg b/tests/voice.ogg new file mode 100644 index 0000000..0d7f43e Binary files /dev/null and b/tests/voice.ogg differ