How To Use API -> V1

Botroid Code

<?php
$key = "here";
$url = "https://api.botroid.in/v1/iteration/?api_key=$key";
$data = file_get_contents($url);
$response = urlencode($data);
bot_sendMessage($chat_id,$message_id, "$response","","Markdown");

PHP

<?php
$key = "here";
$curl = curl_init(); 
 
curl_setopt_array($curl, array( 
    CURLOPT_URL => "https://api.botroid.in/v1/iteration/?api_key=$key", 
    CURLOPT_RETURNTRANSFER => true, 
    CURLOPT_ENCODING => "", 
    CURLOPT_MAXREDIRS => 2, 
    CURLOPT_TIMEOUT => 10, 
    CURLOPT_FOLLOWLOCATION => true, 
    CURLOPT_CUSTOMREQUEST => "GET" 
    )); 
$response = curl_exec($curl); 
 
curl_close($curl); 
echo $response; 
?>

Python

JS

JAVA

Last updated