PHP code example of northmule / telegram-bot-anti-registration

1. Go to this page and download the library: Download northmule/telegram-bot-anti-registration library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

northmule / telegram-bot-anti-registration example snippets


 return [
    'telegramBot' => [
        'apiKey' => 'ТУТ_АБРАКАДАБРА_КЛЮЧ', //  Токен можно узнать/создать через @BotFather
        'botUsername' => '',
        'bootHookUrl' => 'https://exemple.ru', // Домен на адрес которого будут приходить сообщения от Telegram
        'logger' => [
            'telegramLog' => '', // Путь до файла логов запросов Телеграм. Файл должен существовать
            'fileLog' => '', // Путь до файла логов ошибок. Файл должен существовать
        ],
        'disableRouteSet' => 0, // Отключить режим настройки
    ]
];