DemoImageBot is a Telegram bot that sends random images from a specified directory and provides basic information about the bot when specific commands are used.
- Sends random images from the 'Images' directory to users.
- Provides information about the bot using specific commands.
Before you get started, make sure you have the following:
- Python 3.x installed
- Telegram bot token (replace 'YOUR_TELEGRAM_BOT_TOKEN' in the code with your actual token)
If you dont have a Telegram bot token yet, you must first create the bot in Telegram using Botfather:
- Open the Telegram client and search for the user "BotFather"
- Send the BotFather the command "/newbot" to create a new bot
- After you have followed the BotFather's instructions, you will receive an API token. This token is the key with which you can control your bot programmatically.
- Clone the repository to your local machine or server:
git clone https://github.com/OliverWeinhold/DemoImageBot.git- Navigate to the project directory:
cd DemoImageBot- Install the required Python packages using pip:
pip install python-telegram-bot- Replace 'YOUR_TELEGRAM_BOT_TOKEN' with your actual Telegram bot token in the code.
To run the bot, execute the following command within the project directory:
python main.pyThe bot will start running, and you can interact with it on your Telegram.
/start: The bot will send a random image from the 'Images' directory./about: The bot will provide information about itself.
You can customize the bot's behavior by modifying the code.
Detailed documentation (in German only) can be found at oliverweinhold.de.
This project is licensed under the GNU General Public License v3.0.
Please note that the maintenance of this code is not continuous and not guaranteed. For support, feature requests, or bug reporting, please use GitHub.
Contributions are welcome! Feel free to open a pull request or issue on GitHub!