Files
daniil_ai6m3/jokes-bot-v3.0/README.md
2026-01-16 09:28:32 +00:00

956 B

Telegram Joke Bot

A simple Telegram bot that tells jokes when you send it the /joke command.

Setup Instructions

  1. Install required packages

    pip install -r requirements.txt
    
  2. Get a bot token

    • Talk to @BotFather on Telegram
    • Create a new bot with /newbot
    • Copy the token provided by BotFather
  3. Set your bot token You can set your bot token in two ways:

    Option A: Set as environment variable

    export BOT_TOKEN="your_token_here"
    

    Option B: Replace "YOUR_BOT_TOKEN_HERE" in jokes.py with your actual token

  4. Run the bot

    python jokes.py
    

Bot Commands

  • /start - Start the bot and get welcome message
  • /joke - Get a random joke
  • /help - Show help message

Features

  • Sends random jokes from a predefined list
  • Easy to add more jokes to the collection
  • Simple and lightweight implementation