Code Monkey home page Code Monkey logo

stickerify-contrib's Introduction

Telegram bot to convert images in the format required to be used as Telegram stickers (512x512 PNGs)

Table of contents

How to use the bot

You can use the bot going here: start it, and you can now send it the images you need to convert.

Based on what you send, Stickerify will answer the following:

  • the converted image, if you sent a supported file (currently .gif, .gifv and .webp files are not supported)
  • an error message, if you sent an unsupported file
  • an informative message for any message without a file

How to create a new sticker

  1. Chat with Stickers, and use it to create a sticker pack
  2. Ask Stickers to add a new sticker
  3. Use Stickerify to create the proper file for your sticker
  4. Forward Stickerify's message to Stickers
  5. Choose an emoji representing your sticker

And it's done!

How to set up the project

  1. Install Maven and JDK 19 (or higher)
  2. Clone the project and move into its folder
  3. Run the command ./gradlew build
  4. Import the project inside your IDE as a Gradle project
  5. Ensure your IDE is correctly configured to use a Java 19 (or higher) JDK

How to run the bot locally

After you successfully set up the project, you will have to go through the following steps:

  1. Chat with BotFather and ask it to create a new bot
  2. Copy the token it provided you and either:
    • set it as the value of a new environment variable named STICKERIFY_TOKEN
    • use it as the return value of the method getBotToken() inside StickerifyBot
  3. Run the Main class to start the bot, it will be now able to answer messages in Telegram

How to launch the bot using Docker

  1. Install Docker
  2. Prepare the Docker image either:
    • building it passing the token ({{TOKEN}}) retrieved from BotFather with the command:
      docker build -t rob93c/stickerify --build-arg STICKERIFY_TOKEN={{TOKEN}} .
    • pulling the image from Docker Hub:
      docker pull rob93c/stickerify
  3. Now you just need to run the Docker image:
    docker run rob93c/stickerify

How to contribute to the project

Take a look at this project's contributing guidelines here.

Do you have any question? Feel free to open a new discussion.

Hacktoberfest

Hacktoberfest is an event aiming to encourage people to contribute to open source projects every October. This project adheres to this initiative and welcomes any hacktoberfest-related improvement!

If you would like to improve Stickerify as part of this event, first read the contributing guidelines and then feel free to open a new issue and/or pull request.

If your pull request represents a valid contribution to the project, it will be marked as hacktoberfest-accepted, therefore counting towards the 4 contributions goal.

Useful resources

License

See the LICENSE file for license rights and limitations (MIT).

made with ๐Ÿ’– by Roberto Cella

stickerify-contrib's People

Contributors

rob93c avatar renovate[bot] avatar psyop-21 avatar srikanthankamtw avatar imgbotapp avatar martellienrico avatar

Stargazers

Roman 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.