Coder Social home page Coder Social logo

peraltaespectre / stickerninjabot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from m3chd09/stickerninjabot

0.0 0.0 0.0 153 KB

Telegram bot for converting and packing stickers

Home Page: https://t.me/StickerNinjaBot

License: GNU General Public License v3.0

Shell 0.54% Go 98.70% Dockerfile 0.75%

stickerninjabot's Introduction

StickerNinjaBot

Go CodeQL Docker Heroku

中文文档

Description

StickerNinjaBot can help you convert telegram stickers to images in png, jpg and gif format.
Just send the sticker or sticker set link to the bot and it will convert the image to your preferred format.
Single image or zip file with multiple images will be sent to you, depending on your needs.

Features

Convertion

  • Support .webp, .webm and .tgs format stickers input.
  • Support .png, .jpg and .gif format output.

Packing

  • Send bulk stickers and receive converted stickers in a zip archive.

Usage

  • Send command /formats to set your preferred format.

Single sticker

  • Send any stickers to the bot and receive converted stickers in your preferred format.

Multiple stickers

  • Send any sticker set link with the prefix https://t.me/addstickers/ or https://telegram.me/addstickers/ and receive converted stickers in a zip archive.
  • Send command /newpack to start packing, then send any stickers or sticker set link to the bot, and receive converted stickers in a zip archive until the command /finish is sent, or cancel the packing by sending the command /cancel.

Deploying

Deploy on Heroku

Deploy

Installation

apt install -y ffmpeg
git clone https://github.com/M3chD09/StickerNinjaBot
cd StickerNinjaBot
go build
cp .env.example .env

Configuration

Edit the .env file to configure the bot:

  • BOT_TOKEN: Your telegram bot token. Get it from Telegram Botfather.
  • BOT_WEBHOOK: Specify a url and receive incoming updates via an outgoing webhook, or leave it blank to receive updates via polling. For more information, see Telegram Bot API.
  • BOT_DEBUG: Set to true to enable debug mode.
  • PORT: The port to listen on. Leave it blank if you don't want to use a webhook.
  • FILESTORAGE_PATH: The path to the directory where the downloaded stickers will be stored. Default is ./storage.
  • STICKER_COUNT_LIMIT: The maximum number of stickers that can be sent in a single pack. Default is 100.
  • CACHE_TICK: The interval at which the user cache is refreshed. Default is 10s.
  • CACHE_EXPIRATION: The time after which the user cache is expired. Default is 15m.
  • DATABASE_TYPE: The type of database to use. Currently mysql, pgsql, and sqlite are supported.
  • DATABASE_URL: The url of the database to connect to.

Running

./StickerNinjaBot

Credits

stickerninjabot's People

Contributors

m3chd09 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.