Skip to content

Test Telegram Bot Connection #1

Test Telegram Bot Connection

Test Telegram Bot Connection #1

Workflow file for this run

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