/LLUbot

http://telegram.me/llubot

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

LLUbot

This project is no longer maintained on Github, we are cotinuing the development on Gitlab

Our new Gitlab repository: https://gitlab.librelabucm.org/LLUorg/LLUbot

Telegram @LLubot

Requirements

  • A web server SSL-encrypted with a public url (apache, nginx, caddy, etc....)
  • PHP
  • curl binding for php (php5-curl package in Ubuntu)
  • SQLite3 for php (php-sqlite3 package in Ubuntu)

Setup

  1. Clone this repository in the document root of the webserver, or any other folder inside it (anything accesible from a browser is valid):
  1. Copy sample_config.php to config.php: cp sample_config.php config.php

  2. Edit config.php:

  1. Visit this URL in your browser to setup the webhook:

    https://SECRETURL/?key=SECRETKEY&setHook

    Replacing SECRETKEY with the one choosen before and SECRETURL with the URL prefix set in step 1. For example: https://example.com/ or https://example.com/llubot/.

Once the webhook is set, the bot should work. It is NOT neccesary to update again the webhook when the code is changed. Once the webhook is set, telegram will remember it.