DEV Community

Cover image for This telegram bot built with Python and FFmpeg allows you to watermark photos and videos, on the fly
Aahnik Daw
Aahnik Daw

Posted on • Updated on

This telegram bot built with Python and FFmpeg allows you to watermark photos and videos, on the fly

Telegram has become a fantastic alternative to WhatsApp and many people are loving it. It also has channels, where you can broadcast your feed to a large audience. Kinda like Twitter.

Are you a content creator or someone who shares lots of videos/images/infographics/gifs on a Telegram channel?

Then watermarking is a fantastic way to boost your brand image. Using a separate app or video editor is time-consuming, especially if you are producing content on the go, all the time.

I made a telegram bot that applies watermark on images, gifs, and videos.

GitHub logo aahnik / telewater

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

telewater

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

Features

  • Fast because it is made using async libraries.
  • Simple to use.
  • Any one who uses an instance of the bot will have to use the same watermark and position. This is meant to be used by single person/organization (by only you or your team), as configuration is stored at a global level instead of per user basis.
  • No database connection required.
  • It does not store media (photos/videos/gifs) on the server. Media is deleted immediately after the watermarked version is sent to the user.

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…

How does this bot work?

It is simple.

  • First of all, you create a bot account with the help of BotFather in Telegram.
  • You deploy the bot to a remote server or run it locally on your computer.
  • You send a video/image/gif to the running bot. It will instantly watermark it and send it back to you.
  • You can also add your bot as an admin to a group or channel. It will apply a watermark when you post a new media.

The bot is being actively developed. More new features have most probably been added when you are reading this.

For getting all the latest updates, join this telegram channel @tele_water(ad-free).

You can also star and watch the repository on GitHub.

This GitHub repository also has detailed documentation about all the following stuff related to the bot.

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

Top comments (3)

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
aahnik profile image
Aahnik Daw

ok, you can do it. just make sure that, you give backlink. the canonical URL or "originally published at" URL should be "github.com/aahnik/telewater", and original author name should be "Aahnik Daw" (link to my site aahnik.dev)

and this article may be updated in future, when I will add more features to this repo.

for any further doubt, contact me on telegram.

telegram.me/aahnikdaw

Collapse
 
eadetoro profile image
Ezekiel Adetoro

How about using this with Django?