From c096c0408f952d599f19be7af9d26b57f77e1c20 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Thu, 13 Oct 2022 20:14:56 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Added=20Telegram=20Manual=20Inpu?= =?UTF-8?q?t=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/telegram-uploader-custom.yml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/telegram-uploader-custom.yml diff --git a/.github/workflows/telegram-uploader-custom.yml b/.github/workflows/telegram-uploader-custom.yml new file mode 100644 index 0000000..f812463 --- /dev/null +++ b/.github/workflows/telegram-uploader-custom.yml @@ -0,0 +1,43 @@ +name: Telegram Custom Upload + +on: + workflow_dispatch: + inputs: + API_ID: + description: 'Telegram API ID' + required: true + type: number + API_HASH: + description: 'Telegram API HASH' + required: true + type: string + BOT_TOKEN: + description: 'Bot Token(Sender)' + required: true + type: string + CHAT_ID: + description: 'Chat ID(Receiver)' + required: true + type: number + STICKER_ID: + description: 'Sticker to Send' + required: false + default: 'CAACAgUAAxkBAAEY3d5jRDs4sojYzahDxU7wvl7_e1yRhwACuAYAApqD2VV9UCzjLNawRCoE' + type: string + +jobs: + tg-upload: + timeout-minutes: 10 + runs-on: ubuntu-latest + steps: + - name: Upload to Telegram + if: ${{ env.HAVE_TELEGRAM_API_ID == 'true' }} + uses: nikhilbadyal/ghaction-telegram-uploader@main + with: + API_ID: ${{ inputs.API_ID }} + API_HASH: ${{ inputs.API_HASH }} + BOT_TOKEN: ${{ inputs.BOT_TOKEN }} + CHAT_ID: ${{ inputs.CHAT_ID }} + STICKER_ID: ${{ inputs.STICKER_ID }} +env: + HAVE_TELEGRAM_API_ID: ${{ inputs.API_ID != '' }}