/Telegram-bot

This is a Python script using the Telegram Bot API and the Requests library to create a bot that sends random pictures to users who interact with it.

Primary LanguagePython

Telegram Bot

This is a Python script using the Telegram Bot(Bot father) API and the Requests library to create a bot that sends random pictures to users who interact with it.

Requirements

  • Python 3.x
  • requests library
  • python-telegram-bot library

Installation

  1. Clone the repository to your local machine.
  2. Install the required libraries by running pip install -r requirements.txt.
  3. Create a new bot and get its API token from the Telegram BotFather.
  4. Replace the token value in the updater object with your API token.
  5. Run the bot script by executing python bot.py.

Usage

Once the bot is running, you can start a chat with it in Telegram and send it a message to get a random picture. To get a random static image, type "Static Image" and to get a random picture, type "Random Picture".

Contributing

Pull requests and bug reports are welcome. Please make sure to follow the existing code style and include tests for any new features.

License

This project is licensed under the MIT License - see the LICENSE file for details.