Skip to content

Telegram Q&A Bot

Telegram Q&A Bot #412

Workflow file for this run

name: Telegram Q&A Bot
on:
schedule:
- cron: '*/20 * * * *'
workflow_dispatch:
concurrency:
group: telegram-qa-bot
cancel-in-progress: true
jobs:
run-qa:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Telegram Q&A Agent
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
run: |
python qa_agent.py