Chaddi Bot has a variety of features to make your Telegram experience a whole lot more fun! Some of them are -
- WebM to MP4 Converter
/mom
- insults your mom./quotes
- fetches a random quote/rokda
- displays your message count in the chat as a currency./gamble
- lets you win or lose some of your internet points./choose
- makes a random selection if you're confused about two or more things.
- A node to run Chaddi 24*7
- Your node needs to be publicly accessible over the internet if you want to setup Webhook Connectivity.
- Python 3.7
- ffmpeg (For WebM Conversion)
Copy env-example
to .env
and change all values. Then you may run:
$ docker-compose -p <project-name> up -d --build
- Create your bot with @BotFather.
- Refer to Telegram's documentation for more help on creating bots.
- Important settings in @BotFather -
- Enable
Allow Groups
. - Disbale
Privacy Mode
.
- Enable
- Clone the repo.
- Setup virtualenv.
python3 -m venv .env
source .env/bin/activate
- Install from requirements.txt
cd chaddi-tg
pip install -r requirements.txt
- Create a
config.json
based onsample_config.json
insrc/resources
.
- Run locally with
python chaddi_bot.py
. - Run in prod with
./scripts/run_prod.sh
.
WebM files are converted into mp4 by src/handlers/webm_converter.py
using ffmpeg. Make sure to install that.
Refer to python-telegram-bot's official documentation
To check if your setup is correct, do a GET at https://api.telegram.org/bot{my_bot_token}/getWebhookInfo
.