Coder Social home page Coder Social logo

pdf-bot's Introduction

pdf-bot

A Telegram bot to group images in a single pdf document.

The code is messy and not in any way, shape or form, clean.

Building Your Own Bot

If you don't want to build your own, you will find a running bot in this channel

Otherwise, you need an SSL enabled hosting to get started.

Downloading

Clone this repo and compile the code using.

mvn clean compile assembly:single

Or download the .jar file from the release section

Running

Run the app using this command

java -jar <file-name>.jar

At first an error message will show stating that you need to fill out some information about your bot in settings.json.

The settings file looks like this and will be generated if the app didn't find one.

{
    "external_url": "",   // the external webhook url
    "internal_url": "",   // the internal webhook redirect (eg. localhost:PORT)
    "reports_bot": {      // optional reporting bot, sends error messages to the first admin id in the list
        "username": "",
        "token": ""
    },
    "bots": [
      {
        "username": "",     // bot username
        "token": "",        // bot token
        "enabled": true,    // if the bot is enabled or not
        "response_msg": ""  // message to show to users if the bot is disabled
      }
    ]
  }

After filling out your bot/s info you need to start the app again, and the bot will start working.

pdf-bot's People

Contributors

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