This is a bridge between Flarum Webhooks extension and Telegram.
public/
directory).composer install
in the directory to install dependencies.Create config.php
file in the directory, containing:
<?php
return [
'apiKey' => 'your-api-key',
'botName' => 'your-bot-name',
'chatId' => 'your-chat-id',
'token' => 'your-random-string',
];
your-bot-name
with the bot’s username, your-api-key
with the “token to access the HTTP API” you received from BotFather, your-chat-id
with the id of the room id and your-random-string
with random string.action=hook
and token=your-random-string
in the query string (e.g. https://your-flarum-forum.com/flarum-webhooks-telegram-bridge/?action=hook&token=your-random-string
)Please see the LICENSE included in this repository for a full copy of the MIT license, which this project is licensed under.