Skip to content

✨ Suno API Based AI Music Generator Telegram Bot. Example for SunoAI Python Library.

License

Notifications You must be signed in to change notification settings

Malith-Rukshan/Suno-AI-BOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎵 Suno AI Music Generator Telegram Bot

Welcome to the Suno AI Music Generator Bot! 🤖 This bot leverages the Suno AI API to generate custom music tracks based on user inputs directly within Telegram.

✍️ Note : This is a Very Basic Bot Example demonstrating how to use the Suno AI API.

PyPI Package Suno-AI Github Updates Telegram Channel

🌟 Features

  • 🎶 Music Generation: Generate music by providing custom lyrics or a description.
  • 🖱️ Interactive Commands: Simple commands to start music generation, check credits, and cancel ongoing operations.
  • 👥 Simple Interface: Easy to use with inline buttons for quick selections.

🚀 Deployment

🔧 Prerequisites

  • A registered Telegram Bot Token (obtain one from BotFather)
  • Access to Suno AI API with a valid cookie - Tutorial

On PasS

Set SUNO_COOKIE and BOT_TOKEN as Environmental variables.

Deploy with heroku Deploy to Netlify

Deploy on Railway Deploy to Render

Locally

  1. Clone the repository:

    git clone https://github.com/Malith-Rukshan/Suno-AI-BOT.git
    cd Suno-AI-BOT
  2. Install required packages:

    pip install -r requirements.txt
  3. Set Environment Variables:

    Set the BOT_TOKEN and SUNO_COOKIE in your environment variables or directly in the code.

    export BOT_TOKEN='your_bot_token_here'
    export SUNO_COOKIE='your_suno_cookie_here'
  4. Run the Bot:

    python main.py

⌨️ Commands

Interact with your bot on Telegram using the following commands:

  • /start - Welcome message and basic bot information.
  • /generate - Starts the music generation process.
  • /credits - Shows the current credit balance and usage.
  • /cancel - Cancels the current operation and resets the session.

🤝 Contributing

Contributions to the Suno AI Music Generator Bot are welcome! Please feel free to fork the repository, make changes, and submit pull requests.

🎯 Credits and Other

All content and music generated through this bot are credited to Suno AI. This Bot by unofficial API provides a convenient way to interact with Suno AI's services but does not claim any ownership or rights over the music generated. Please respect the terms of service of Suno AI when using their platform ❤️.

This bot is intended primarily for educational and development purposes. It aims to enhance and simplify access to Suno AI's music generation capabilities. If you enjoy the music generated, consider supporting Suno AI directly. Based on Python Telegram BOT API.

⚖️ License

This project is distributed under the MIT License. This license allows everyone to use, modify, and redistribute the code. However, it comes with no warranties regarding its functionality. For more details, see the LICENSE file in the repository.

🌟 Support and Community

If you found this project helpful, don't forget to give it a ⭐ on GitHub. This helps others find and use the project too! 🫶

Join our Telegram channels,

📬 Contact

If you have any questions, feedback, or just want to say hi, you can reach out to me:

🧑‍💻 Built with 💖 by Single Developers </>