GithubHelp home page GithubHelp logo

krows7 / telegram-sticker-bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 24.14 MB

The Telegram bot allows users to create sticker based on message data

License: GNU General Public License v3.0

Java 98.85% Dockerfile 0.57% Batchfile 0.58%

telegram-sticker-bot's Introduction

telegram-sticker-bot

Telegram bot for creating stickers from messages. The bot allows users to create personalized stickers by rendering messages as if they were sent from a Telegram client.

Build

Application requires specific environment variable to run correctly:

  • bot_token – your Telegram Bot API token
  • admin_ids – Telegram user ID as an application admin
  • sticker_owner_id – Telegram user ID as sticker pack owner

Using Maven

Run mvn clean compile exec:exec

  • Works on Java 9-17 only

Using Local Docker

On Windows: run docker-install.bat

  • WSL and Docker must be installed to run the project.
  • 'env.list' file with environment variables is required in root directory.

Using Remote Docker

  1. On Windows: run deploy-image.bat <name> <version>, name – your Docker account name; version – any

    • WSL, Apache Maven, and Docker must be installed to run the script.
    • You must have an actual Docker account to run the script.
    • You must have a present remote host to run the project.
  2. Start your remote host with installed Docker

  3. Create 'docker-compose.yaml' file with following content:

    version: "3"
    
    volumes:
      logs:
    
    services:
      telegram_bot:
        image: <name>/telegram-sticker-bot:<version>
        volumes:
          - logs:/logs
        restart: always
        environment:
          - admin_ids=<admin_ids>
          - bot_token=<bot_token>
          - sticker_owner_id=<admin_ids>

    Fill all <*> tags with correct data

  4. Run docker-compose up -d on your remote host

telegram-sticker-bot's People

Contributors

krows7 avatar

Watchers

 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.