Skip to content

MelomanCool/telegram-audiomemes

Repository files navigation

Telegram AudioMemes

A Telegram bot that lets you send audio memes.

Usage

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)

Requirements

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 converting Audio (mp3) to Voice (ogg) objects.

After cloning the repo, you can install requirements with pip:
pip3 install -r requirements.txt

Running the bot

  1. Clone this repository:
    git clone https://github.com/MelomanCool/telegram-audiomemes.git

  2. 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"
    
  3. Run the bot:
    python3 main.py

About

A Telegram bot that lets you send audio memes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages