A simple bot that allows you to post a personal link where the user can receive anonymous messages through this bot and respond to them.
- Working with the MongoDB database - saving and deleting users and messages to implement analytics (you can use Redash for this).
- Welcome message with a picture (the picture is not in the repository).
- Sending texts, stickers, photos, videos, stories, voices, audios and documents.
- Checking for the subscription on channels.
- Install Python 3.
- Install the requirements -
pip3 install -r requirements.txt
. - Create telegram bot with @BotFather.
- Create MongoDB database.
- Copy the API Token from @BotFather for the bot.
- Copy the connection string for the database.
- Set up the environment variables or instert data in the constants in code -
API_TOKEN
,CONNECTION_STRING
. - Run the bot -
python3 main.py
.
Or use docker.