A Telegram bot that lets you send audio memes.
Search using inline mode.
To get the name of a meme, reply to it with /name command.
Manage memes using following commands:
- send an audio to bot to add a meme
- /cancel – cancel adding
- /rename – rename the meme (use replying to the meme)
- /delete – delete the meme (use replying to the meme)
(you can rename or delete only memes you've created yourself)
The code has been tested only on Python 3.4.
This bot uses following packages:
python-telegram-bot
– Telegram API wrapper.fuzzywuzzy
– for meme searching.pydub
– for convertingAudio
(mp3) toVoice
(ogg) objects.
After cloning the repo, you can install requirements with pip:
pip3 install -r requirements.txt
-
Clone this repository:
git clone https://github.com/MelomanCool/telegram-audiomemes.git
-
Create a
config.py
file containing the api token you got from @BotFather and path to database to store memes:TOKEN = "YOUR_TOKEN" DB_PATH = "memes.db"
-
Run the bot:
python3 main.py