aahnik / telewater

A telegram bot that applies watermark on images, gifs, and videos.
MIT License
72 stars 101 forks source link
bot deployment digitalocean ffmpeg heroku linux-vps poetry pypi-package python python-dotenv python3 telegram telegram-bot telethon ubuntu-server watermark watermark-gif watermark-image watermark-video watermarking

telewater

A telegram bot that applies watermark on images, gifs and videos.

Features

Watch this video on YouTube to learn how to use and deploy this bot.

Usage

Using the bot is very simple. Just send a photo, video or gif to the bot. The bot will reply with the watermarked media.

The bot commands /set and /get can set and get the value of the configuration variables. The commands are simple and intuitive. The bot will show you the usage if you send an incorrect argument.

Deploy

Click on this link and get free 100$ on Digital Ocean.

DigitalOcean Referral Badge

NOTE You will get nothing if you directly sign up from Digital Ocean Home Page. Use the link above, or click on the big fat button above to get free 100$.

Read the Guide to Deploy to Digital Ocean.


This application can also be easily deployed to Heroku, which is extremely good if you want to enjoy a free tier.

You may read further to learn about more more deployment options.

Deploy

Click on the above button. A form will appear, where you need to enter the credentials for the bot. After the app is deployed sucessfully, turn on the woker dyno to start the bot.

Installation

The following is the guide to install telewater on your computer, or VPS.

If you are a beginner, don't bother yourself with these. Just go ahead with the heroku method described abvoe.

If you are familiar with Docker then click here otherwise, continue reading.

Requirements

Make sure to have these installed in your system.

Verification

Open you terminal to check if you have all basic requirements properly installed.

  1. Run python --version and you should get something like this Python 3.9.2 (or above).

  2. Run pip --version and you should get pip 20.2.2 (or above).

    Some systems may require to use python3 and pip3 instead of the above.

  3. Run ffmpeg -h and it should display a help message and version above 4.2.4.

Install via pip

pip install telewater

Starting telewater

Telewater has a simple command line interface to start the bot.

Simply open your terminal and run telewater. It will prompt you to enter the required information.

Further reading

For any further help, feel free to create an issue in the GitHub repo.