Botroid Codes
14 subscribers
3 links
Download Telegram
Channel created
Send Photo

<?php
$img = "https://t.me/CBGNews/32";
$board=[
['7', '8', '9'],
['4', '5', '6'],
['1', '2', '3'],
['0']
];
bot_sendPhotoWithKeyboard($chat_id,$message_id,$img,$board,"Image","","Markdown");
Send Photo With Keyboard

<?php
$img = "https://t.me/CBGNews/32";
$board=[
['7', '8', '9'],
['4', '5', '6'],
['1', '2', '3'],
['0']
];
bot_sendPhotoWithKeyboard($chat_id,$message_id,$img,$board,"Image","","Markdown")
;
👍1
Send Photo With Inline Keyboard


<?php
$img = "https://t.me/CBGNews/32";
$board = [
[
[
"text" => "key 1",
"url" => "https://google.com/"
],
[
"text" => "key 2",
"callback_data" => "/start"
],
[
"text" => "key 3",
"callback_data" => "x"
]
]
];
bot_sendPhotoWithInlineKeyboard($chat_id,$message_id,$img,$board,"Image","","Markdown")
;
1
QR Generator

<?php
$split = explode(" ",$message);
$msg = $split[1];
if(!$msg){
bot_sendMessage($chat_id,$message_id, "Invalid Use : /qr hi","","Markdown");
return;
}
$img = "https://api.i-tools.site/qr/?text=$msg";
bot_sendPhoto($chat_id,$message_id,$img,"Image","","Markdown");
Please open Telegram to view this post
VIEW IN TELEGRAM
🚨Captcha In Bot

Command :
/start

Code :
<?php
if(user_getProperty($chat_id,"isVerified")=="undefined"){
$rnd1 = RandomLib_random(20,40);
$rnd2 = RandomLib_random(1,20);
$ans = $rnd1+$rnd2;
$board = [
[
[
"text" => "Answer",
"callback_data" => "/ans"
]
]
];
bot_sendInlineKeyboard($chat_id,$message_id,$board,"➡️ Before we start the airdrop, please prove you are human by answering the question below..\n Please answer: $rnd1 + $rnd2 = ?","","Markdown");
user_setProperty($chat_id,"msgID1","$message_id");
user_setProperty($chat_id,"QuesAns","$ans");
}else{
bot_runCommand($chat_id,$message_id,"/startMain");
}

Command :
/ans

Code :
<?php
if(user_getProperty($chat_id,"isVerified")!="undefined"){
bot_runCommand($chat_id,$message_id,"/startMain");
return;
}
if(user_getProperty($chat_id,"QuesAns")=="undefined"){
bot_runCommand($chat_id,$message_id,"/start");
return;
}
$id1 = user_getProperty($chat_id,"msgID1");
$id = $id1+1;
bot_deleteMessage($chat_id,$id1);
bot_deleteMessage($chat_id,$id);
if(message($chat_id,$message_id)=="true"){
$ans = user_getProperty($chat_id,"QuesAns");
if($message==$ans){
user_setProperty($chat_id,"isVerified","yes");
bot_runCommand($chat_id,$message_id,"/startMain");
}else{
bot_sendMessage($chat_id,$message_id, "Wrong Answer","","Markdown");
clearMessage($chat_id);
bot_runCommand($chat_id,$message_id,"/start");
}
}else{
bot_sendMessage($chat_id,$message_id, "👍Great, please enter the answer.","","Markdown");
waitForMessage($chat_id,$message_id,"/ans");
}

Command :
/startMain

Code :
<?php
if(user_getProperty($chat_id,"isVerified")=="undefined"){
bot_runCommand($chat_id,$message_id,"/start");
return;
}
bot_sendMessage($chat_id,$message_id, "Correct ans","","Markdown");
Please open Telegram to view this post
VIEW IN TELEGRAM
⚠️ Convert Crypto Rate

Command :
/p

Code :
https://code-bin.tk/QSkY9c09g2
🚨 Link Shortner Code

Command :
/link


Code :
<?php 
$split = explode(" ",$message);
$msg = $split[1];
if(!$msg){
bot_sendMessage($chat_id,$message_id, "Invalid Use : /link https://plughost.in","","Markdown");
return;
}
$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.i-tools.site/short/?url=$msg",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_CUSTOMREQUEST => "GET"
));
$response = curl_exec($curl);

curl_close($curl);
$data = json_decode($response,true);
$url = $data["shortenUrl"];
bot_sendMessage($chat_id,$message_id, "$url","","Markdown");
Please open Telegram to view this post
VIEW IN TELEGRAM
🚨 About Country

Command :
/country

Code :
<?php 
$split = explode(" ",$message);
$msg = $split[1];
if(!$msg){
bot_sendMessage($chat_id,$message_id, "Invalid Use : /country india","","Markdown");
return;
}
$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.i-tools.site/country/?name=$msg",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_CUSTOMREQUEST => "GET"
));
$response = curl_exec($curl);

curl_close($curl);
$data = json_decode($response,true);
$code = $data["code"];
$cap = $data["capital"];
$reg = $data["region"];
$cur = $data["currency"]["code"];
$cur_name = $data["currency"]["name"];
$cur_sym = $data["currency"]["symbol"];
$lang = $data["language"]["code"];
$lang_name = $data["language"]["name"];
$flag = $data["flag"];
$dail_code = $data["dialling_code"];
bot_sendPhoto($chat_id,$message_id,$flag,"Code : $code\nCapital : $cap\nRegion : $reg\nCurrency : $cur\nCurrency Name : $cur_name\nCurrency Symbol : $cur_sym\nLanguage : $lang\nLanguage : $lang_name\nDial Code : $dail_code","","Markdown");
Please open Telegram to view this post
VIEW IN TELEGRAM
Paytm Auto Pay Bot ready guys ❤️

@PaytmAutoPayBotRoidBot

Codes coming 🥴🥴
Hosting = BotRoid.in
👍2
Some errors are come 😂
Setup karne codes drop karduga me 🙃🙃
New vale with capture
♻️ Command:- /start

📑 Codes:- <?php
if(chat_type($chat_id)=="private"){
bot_sendMessage($chat_id,$message_id, "$type","","Markdown");
$board = [
[
[
"text" => " Joined",
"callback_data" => "/join"
]
]
];
$msg = " To Use This Bot You Must Join To Our Channel\n\n*@botcodes123*\n*@botcodes123\n\nAfter Joined Click On ✅️Joined*";
bot_sendInlineKeyboard($chat_id,$message_id,$board,"$msg","","Markdown");
user_setProperty($chat_id,"msgID","$message_id");
return;
}