Test Telegram Bot Connection #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Telegram Bot Connection | |
on: | |
workflow_dispatch: # Allows manual triggering from the GitHub Actions tab | |
jobs: | |
test-telegram-bot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests | |
- name: Run Telegram Bot Test | |
env: | |
BOT_API_KEY: ${{ secrets.BOT_API_KEY }} # Use your GitHub Secrets for the bot token | |
CHANNEL_ID: ${{ secrets.CHANNEL_ID }} # Use your GitHub Secrets for the channel ID | |
run: | | |
python testing/telegram_bot.py |