Telegram bot for distorting images and stickers using CAS

Distortioner

Distorted cat

Telegram bot for distorting pictures, stickers, voice messages and GIFs using Content Aware Scale. Currently resides here: @distortionerbot

Usage

  1. You'll need to install ffmpeg and ImageMagick with liquid-rescale enabled. For that you'll need to install liblqr and glib-2.0, then compile from source (using AppImage might work too)
  2. Create a bot with @BotFather, then set up a DISTORTIONER_BOT_TOKEN environment variable.
  3. After that grab distortioner from releases or compile using go build command.

Docker support

Fill out your bot token in distortioner.env, then launch as usual:

sudo docker run -d --restart unless-stopped \
   --name distortioner \
   --env-file distortioner.env \
   ghcr.io/graynk/distortioner:latest

With Podman:

podman run -d \
   --label "io.containers.autoupdate=image" \
   --name distortioner \
   --env-file distortioner.env \
   ghcr.io/graynk/distortioner:latest
cd ~/.config/systemd/user/
podman generate systemd --new --files --name distortioner
systemctl enable --user container-distortioner.service
loginctl enable-linger $USER

TODO

  • Distort animated stickers
  • Make distortion increase throughout the video
  • For stickers create and maintain a separate sticker pack for ease of use
Similar Resources

Bot that polls activity API for Github organisation and pushes updates to Telegram.

git-telegram-bot Telegram bot for notifying org events Requirements (for building) Go version 1.16.x Setup If you don't have a telegram bot token yet,

Apr 8, 2022

Library for working with golang telegram client + bot based on tdlib. This library was taken from the user Arman92 and changed for the current version of tdlib.

go-tdlib Golang Telegram TdLib JSON bindings Install To install, you need to run inside a docker container (it is given below) go get -u github.com/ka

Dec 2, 2022

A tip bot and Lightning wallet on Telegram ⚡️

A tip bot and Lightning wallet on Telegram ⚡️

@LightningTipBot 🏅 A Telegram Lightning ⚡️ Bitcoin wallet and tip bot for group chats. This repository contains everything you need to set up and run

Dec 23, 2022

Telegram bot check your TrainingPeaks profile workouts and send notification if some workouts added or changed

TrainingPeaks Bot Telegram bot check your TrainingPeaks profile workouts and sen

Dec 29, 2021

RaspChecker - A Telegram bot that allows you to monitor your Raspberry Pi's temperature and shut it down. Written in Golang.

RaspChecker Remotely monitor your Raspberry Pi's temperature and shut it down if you want. All through Telegram. How to set up In order to run the bot

Jan 2, 2022

go telegram bot, used for video collect and more.

For what 我的想法: 部署一个私有的tg api server到国外的vps 通过 sshfs(sftp) 挂载我国内的nas到vps上 在tg上转发视频到我的bot 通过此程序handle此转发 透过私有api server会下载视频到我的vps上 将视频移动到挂载目录,自动同步到我的na

Jan 15, 2022

A Telegram bot that asks you a question and evaluate the response you provide.

A Telegram bot that asks you a question and evaluate the response you provide.

PiSquared A Telegram bot that asks you a question and evaluate the response you provide. Thanks to the labse_bert model, the evaluation of the answer

Nov 13, 2022

This repository will guide you to steal whatever the user copies and send content to telegram bot.

copy-clipboard-stealer-with-telegram This repository will guide you to steal whatever the user copies and send content to telegram bot. Setting Envior

Oct 4, 2022

Feline-bot - Feline Bot for Discord using Golang

Feline Bot for Discord Development This bot is implemented using Golang. Feature

Feb 10, 2022
Comments
  • Implement a queue for videos/animations

    Implement a queue for videos/animations

    Currently, everything gets processed without any restrictions, which results in very long waiting periods when a lot of videos suddenly gets processed at the same time. There needs to be a limit on amount of concurrently processing videos, as well as a daily/hourly limit by the user_id. 50 videos per day by a single user is a lot more than I want to see.

  • Find a workaround for .webm stickers

    Find a workaround for .webm stickers

    Bot API is set up in a way that makes sending generated .webm stickers very painful. Here's the suggestion For now I have three options:

    1. Continually create and delete sticker sets on each request, spamming my own @Stickers with temp sets. This will not do, there's a hard rate limit on 50 new sets per user per bot
    2. Manage a single sticker set, adding and removing stickers. This seems to be broken too: despite synchronization I still ended up with more than 1 sticker being added at the same time, seems like it caches pretty aggressively
    3. Somehow use tdlib which is heavily cache dependent as well

    What I really need to do is set up local Bot API and read through it to see how it works. I just need to find the time for it

  • Distort animated stickers

    Distort animated stickers

    Telegram uses a subset of Lottie animations. While it won't be CAS, it's possible to just move vertices around until it looks funny. I just gotta find it in me to finish UnmarshalJSON for Lottie

Dlercloud-telegram-bot - A Telegram bot for managing your Dler Cloud account

Dler Cloud Telegram Bot A Telegram bot for managing your Dler Cloud account. Usa

Dec 30, 2021
Pro-bot - A telegram bot to play around with the community telegram channels

pro-bot ?? Pro Bot A Telegram Bot to Play Around With The Community Telegram Cha

Jan 24, 2022
A bot based on Telegram Bot API written in Golang allows users to download public Instagram photos, videos, and albums without receiving the user's credentials.

InstagramRobot InstagramRobot is a bot based on Telegram Bot API written in Golang that allows users to download public Instagram photos, videos, and

Dec 16, 2021
Bot - Telegram Music Bot in Go

Telegram Music Bot in Go An example bot using gotgcalls. Setup Install the serve

Jun 28, 2022
Bot-template - A simple bot template for creating a bot which includes a config, postgresql database

bot-template This is a simple bot template for creating a bot which includes a c

Sep 9, 2022
UcodeQrTelebot ver2 - Easy way to get QR and U-code using Utopia API in telegram bot
UcodeQrTelebot ver2 - Easy way to get QR and U-code using Utopia API in telegram bot

UcodeQrTelebot Easy way to get QR and U-code using Utopia API in telegram bot Us

Dec 30, 2021
The serverless OTP telegram service use telegram as OTP service, and send OTP through webhook

Setup OTP First thing, you need prepare API(webhook) with POST method, the payload format as below { "first_name": "Nolan", "last_name": "Nguyen",

Jul 24, 2022
Telegram bot written in Golang using gotgbot library

go_tgbot Telegram bot written in Golang using gotgbot library. How to run go get -u github.com/itsLuuke/go_tgbot rename sample.env to .env and fill in

Nov 4, 2022
IRC, Slack, Telegram and RocketChat bot written in go
IRC, Slack, Telegram and RocketChat bot written in go

go-bot IRC, Slack & Telegram bot written in Go using go-ircevent for IRC connectivity, nlopes/slack for Slack and Syfaro/telegram-bot-api for Telegram

Dec 20, 2022
Golang telegram bot API wrapper, session-based router and middleware

go-tgbot Pure Golang telegram bot API wrapper generated from swagger definition, session-based routing and middlewares. Usage benefits No need to lear

Nov 16, 2022