Simple-stupid telegram bot that can use watermark image overlay over video input with ffmpeg.
Uses long-polling, which is not ideal (webhook would be better), but just works.
Supports localization: Ukrainian (uk) and English (en), could be configured via config.env
file or env variables (with BOT_
prefix).
Working example: @odarka_watermarka_bot
- Go
- Register bot with @BotFather
- ffmpeg should be installed
- macos (with brew, fyi: may require
xcode-select --install
)brew install ffmpeg
- ubuntu
sudo apt install ffmpeg
- macos (with brew, fyi: may require
- Configure
config.env
(you can checksample.env
as an example):- set
TELEGRAM_TOKEN
(could be obtained from @BotFather) - set
ENVIRONMENT
- if it isdev
- debug logs will be displayed - set
LOCALE
- supportsen
for english anduk
for ukrainian,uk
by default.
- set
go run .
binary will be available in bin
folder.
- for ubuntu
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o bin/tgbot-watermark
- for macos
GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o bin/tgbot-watermark