wildphp / module-tgrelay
Telegram relay module for WildPHP
Requires
- ext-fileinfo: *
- react/http: ^1.1
- react/http-client: ^0.5
- unreal4u/telegram-api: ^3
- yoshi2889/collections: ^0.1
- yoshi2889/container: ^0.1
- yoshi2889/tasks: ^0.1
- yoshi2889/validation-closures: ^0.2
This package is auto-updated.
Last update: 2023-03-25 20:42:22 UTC
README
Telegram relay module for WildPHP.
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).
Installation
To install this module, we will use composer
:
composer require wildphp/module-tgrelay
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
:
- WildPHP\Modules\TGRelay\TGRelay
The bot will run the module the next time it is started.
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
:
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.).
Other modules can add commands to the bot.
License
This module is licensed under the MIT license. Please see LICENSE
to read it.