This is a Telegram bot that generates memes based on chat conversations using AI. It leverages the MagicHour meme generator API and Alchemyst AI for meme topic generation.
- Analyzes chat history to generate relevant, funny meme topics
- Uses MagicHour API to create memes with popular templates
- Sends generated memes directly in the Telegram chat
git clone https://github.com/foxy-dev1/Telegram-MemeGenerator-Bot.git
cd Telegram-MemeGenerator-Bot
pip install -r requirements.txt
Create a .env
file in the project root with the following content:
telegram_bot_key=your_telegram_bot_api_key
meme_gen_api=your_magichour_api_key
alcheyst_api_key=your_alchemyst_api_key
- Telegram Bot API Key:
- Talk to @BotFather on Telegram.
- Use
/newbot
to create a new bot and get your API key.
- MagicHour API Key:
- Sign up at MagicHour AI.
- Go to your dashboard and find your API key.
- Alchemyst API Key:
- Register at Alchemyst AI.
- Go to your account settings or dashboard to generate an API key.
python meme.py
- Start a chat with your bot or add bot to your group on Telegram.
- Send messages the bot will analyze the conversation and generate memes.