public DirectionsHandlers(Webhook webhook) {
   if (USEWEBHOOK && BuildVars.useWebHook) {
     webhook.registerWebhook(this, BOTNAME);
     SenderHelper.SendWebhook(Webhook.getExternalURL(BOTNAME), TOKEN);
   } else {
     SenderHelper.SendWebhook("", TOKEN);
     new UpdatesThread(TOKEN, this);
   }
 }
Ejemplo n.º 2
0
  public static void main(String[] args) {

    if (BuildVars.useWebHook) {
      webhook = new Webhook();
    }

    initBots();

    if (BuildVars.useWebHook) {
      webhook.startDebugServer();
      // webhook.startServer();
    }
  }