PHP code example of sobhansgh / rubikabotphp
1. Go to this page and download the library: Download sobhansgh/rubikabotphp 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/ */
sobhansgh / rubikabotphp example snippets
use Sobhansgh\Rubikabotphp\Rubika;
use Sobhansgh\Rubikabotphp\Types\Message;
$bot = new Rubika("YOUR_BOT_TOKEN");
$bot->sendMessage(
Message::make()
->chat("CHAT_ID")
->text("Hello Rubika!")
);