Files
inna_ai6m3/jokes-bot-v3.0/README.md
2026-01-20 07:12:52 +00:00

46 lines
956 B
Markdown

# Telegram Joke Bot
A simple Telegram bot that tells jokes when you send it the `/joke` command.
## Setup Instructions
1. **Install required packages**
```bash
pip install -r requirements.txt
```
2. **Get a bot token**
- Talk to [@BotFather](https://t.me/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
```bash
export BOT_TOKEN="your_token_here"
```
Option B: Replace "YOUR_BOT_TOKEN_HERE" in jokes.py with your actual token
4. **Run the bot**
```bash
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