Skip to content

magweter/aanwezigheids-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Bot - Aanwezigheids Checker

A simple Telegram bot that responds to the /check command with a string of dots.

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Get a Telegram bot token:

    • Open Telegram and search for @BotFather
    • Send /newbot and follow the instructions
    • Copy the bot token you receive
  2. Set the bot token. You can use either method:

    Option A: Using a .env file (recommended)

    # Create a .env file in the project directory
    echo "TELEGRAM_BOT_TOKEN=your_token_here" > .env
    echo "WHITELISTED_USER_IDS=123456789,987654321" >> .env

    Option B: Using environment variable

    export TELEGRAM_BOT_TOKEN='your_token_here'
    export WHITELISTED_USER_IDS='123456789,987654321'

    Note: The WHITELISTED_USER_IDS is optional. If not set, all users can use the bot. If set, only the specified user IDs (comma-separated) will be able to use the bot. You can get a user's ID by having them send /start to the bot.

  3. Run the bot:

python bot.py

Usage

Once the bot is running, send /check to any chat where the bot is present, and it will reply with a string of dots.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages