Skip to content

TheKiwiosity/TelegramWallpapers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Wallpaper maker

A telegram bot written with Telegraf.js that turns any image sent into a fitted phone wallpaper with a blurry background.

The project uses Docker, to make the setup easier.

Credits to @MakotoIchinose6 for the image of Clive they made that I use for the preview. (I'm absolutely in love)

Telegram Wallpaper Bot screenshot

Table of Contents

File Structure

.
├── Dockerfile
└── src
    ├── bot.ts
    ├── index.ts
    ├── handlers
    │   └── index.ts
    ├── models
    │   ├── bot.ts
    │   └── functions.ts
    └── utilities
        ├── functions.ts
        └── validateEnv.ts

Requirements

or if you are planning to run the script yourself

Setup

Using Docker

  1. Create a token for the bot through BotFather

  2. Get the docker image:

docker pull kiwipetal/telegramwallpapers:latest
  1. Run the docker image:
docker run -d -e BOT_TOKEN="YOURTOKEN" kiwipetal/telegramwallpapers:latest

Manual

  1. Pull the repository.

  2. Install all dependencies:

npm install
# or
yarn
  1. Create a token for the bot through BotFather

  2. Create an .env file:

BOT_TOKEN=YOURTOKEN
  1. Run the script
npm run start
# or
yarn start

Usage

Send a number to change the blur strength (default: 200). The package for blurring seems to break if you go above 300 though (Will fix that later).

Send an image (not as a file). The bot will respond with an edited version.

TODOs

  • Script to Make images
  • Custom intensity
  • Docker integration
  • Feature flag to opt out of session persistence
  • Custom resolution
  • Shadow
  • Colour instead of blur

About

Telegram bot that creates phone wallpapers with blur

Resources

Stars

Watchers

Forks

Releases

No releases published