PHP code example of atlas89 / telegram-notify-order

1. Go to this page and download the library: Download atlas89/telegram-notify-order 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/ */

    

atlas89 / telegram-notify-order example snippets


    composer 

    $client = new \atlasTelegramNotify\NotifyTelegram ("token", "chat_id");

    $client = new \atlasTelegramNotify\NotifyTelegram ();
    $client->setToken("token");
    $client->setChatID("chat_id");

    $response = $client->sendMessages("здесь указываем текст сообщения");

    $response = $client->getMe();