Skip to content

πŸš€ Telegram Bot for Image Format Conversion using the Telethon library and PIL (Pillow) πŸ§‘β€πŸ’». This bot allows users to easily convert images between various formats directly within Telegram!

License

Notifications You must be signed in to change notification settings

nakul-verma2/image-format-changer-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–ΌοΈ Telegram Image Format Converter Bot

πŸš€ Telegram Bot for Image Format Conversion using the Telethon library and PIL (Pillow) πŸ§‘β€πŸ’». This bot allows users to easily convert images between various formats directly within Telegram!

✨ Features

  • 🌟 Supports multiple image formats: JPEG, JPG, PNG, and WEBP.
  • πŸ“₯ Effortless Image Upload: Users can send images directly to the bot, which will automatically handle the conversion.
  • πŸ“² Interactive UI: The bot provides a user-friendly interface with buttons to start the conversion process.
  • πŸ”„ Automated Conversion Process: The bot checks the format of the uploaded image and guides the user to select the desired output format.
  • βœ… Error handling: Provides feedback on unsupported formats and failed conversions.

πŸ› οΈ Installation

  1. Clone the repository:

    git clone https://github.com/nakul-verma2/image-format-changer-bot
  2. Open Folder:

    cd image-format-changer-bot
  3. Create a image folder inside repo:

    mkdir image
  4. Create a virtual environment:

    python3 -m venv myenv && source myenv/bin/activate
  5. Install the dependencies:

    pip install -r requirements.txt
  6. Edit your bot token, api_id, and api_hash in the script bot.py:

    bot_token = "your-bot-token"
    api_id = "your-api-id"
    api_hash = "your-api-hash"
  7. Run the bot:

    python3 bot.py

βš™οΈ Usage

  • Send /start to begin interacting with the bot.
  • Upload an image and select the format you want to convert it to.
  • The bot will send you the converted image in the format of your choice!

πŸ”§ Supported Formats

  • JPEG
  • JPG
  • PNG
  • WEBP

πŸ€– Technologies Used

πŸ’¬ Commands

  • /start: Begin interaction with the bot.
  • /Help: Provides information on supported formats and usage instructions.
  • /Change Format Of An Image: Convert images to another format.

πŸŽ‰ Contributing

Feel free to open issues or submit pull requests to enhance the functionality of the bot.

πŸ“œ License

This project is licensed under the MIT License.

About

πŸš€ Telegram Bot for Image Format Conversion using the Telethon library and PIL (Pillow) πŸ§‘β€πŸ’». This bot allows users to easily convert images between various formats directly within Telegram!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages