https://github.com/zero1max/aiogram-dice-bot
A simple Telegram bot built with Aiogram 3.x that sends different types of dice emojis (football, slot machine, bowling, basketball) to a specified chat. The bot supports basic commands like /start, /ball, /pot, /bow, /bask, and /chat_id.
https://github.com/zero1max/aiogram-dice-bot
aiogram3 python3
Last synced: 9 months ago
JSON representation
A simple Telegram bot built with Aiogram 3.x that sends different types of dice emojis (football, slot machine, bowling, basketball) to a specified chat. The bot supports basic commands like /start, /ball, /pot, /bow, /bask, and /chat_id.
- Host: GitHub
- URL: https://github.com/zero1max/aiogram-dice-bot
- Owner: zero1max
- Created: 2025-02-18T05:15:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-18T05:20:48.000Z (over 1 year ago)
- Last Synced: 2025-06-15T14:17:49.078Z (12 months ago)
- Topics: aiogram3, python3
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Aiogram Dice Bot
This is a simple Telegram bot built using Aiogram 3.x. The bot sends various types of dice emojis (football, slot machine, bowling, basketball) to a specified chat when a user sends corresponding commands.
## Features
- `/start` - Greets the user
- `/ball` - Sends 10 football dice rolls
- `/pot` - Sends 10 slot machine spins
- `/bow` - Sends a single bowling roll
- `/bask` - Sends a single basketball throw
- `/chat_id` - Gets the chat ID
## Requirements
- Python 3.10+
- `aiogram` 3.x
## Installation
1. Clone the repository:
```sh
git clone https://github.com/your-username/aiogram-dice-bot.git
cd aiogram-dice-bot
2. Install dependencies:
```sh
pip install -r requirements.txt
3. Create a .env file and add your bot token:
```sh
BOT_TOKEN=your_bot_token_here
CHAT_ID=-1001234567890 # Replace with your group chat ID
4. Run the bot:
```sh
python bot.py