/pdf-bot

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

Primary LanguageJava

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.