2017 © Pedro Peláez
 

library module-tgrelay

Telegram relay module for WildPHP

image

wildphp/module-tgrelay

Telegram relay module for WildPHP

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Telegram Relay Module

Build Status Scrutinizer Code Quality Latest Stable Version Latest Unstable Version Total Downloads, (*1)

Telegram relay module for WildPHP., (*2)

System Requirements

If your setup can run the main bot, it can run this module as well. For the file server, a system is needed with sufficient disk space to host a very small webserver (will grow over time)., (*3)

Installation

To install this module, we will use composer:, (*4)

composer require wildphp/module-tgrelay, (*5)

That will install all required files for the module. In order to activate the module, add the following line to your modules array in config.neon:, (*6)

- WildPHP\Modules\TGRelay\TGRelay

The bot will run the module the next time it is started., (*7)

Configuration

First setup a Telegram bot. There are many guides on the internet for this. Add and adjust the following snipped in your config.neon:, (*8)

telegram:
    port: 9093
    listenOn: '0.0.0.0'
    uri: 'http://localhost:9093'
    botID: 'your bot ID here'
    channels:
        'chat_id': 'irc_channel'

Usage

Link channels in the config. Use the /command command to send commands to the channel (to other bots e.g.)., (*9)

Other modules can add commands to the bot., (*10)

License

This module is licensed under the MIT license. Please see LICENSE to read it., (*11)

The Versions