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
Command :
/startCode :
<?phpCommand :
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");
}
/ansCode :
<?phpCommand :
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");
}
/startMainCode :
<?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
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
Command :
/countryCode :
<?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
👍2
Some errors are come 😂
Setup karne codes drop karduga me 🙃🙃
New vale with capture
Setup karne codes drop karduga me 🙃🙃
New vale with capture
♻️ Command:-
📑 Codes:-
/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;
}♻️ Command:
📑 Codes:-
/join📑 Codes:-
<?php
if(chat_type($chat_id)=="private"){
$iddd1 = user_getProperty($chat_id,"msgID");
$iddd = $iddd1+1;
bot_deleteMessage($chat_id,$iddd);
if(MemberLib_checkIsUserJoined("@botcodes123",$message_id,"$chat_id")=="left"){
bot_sendMessage($chat_id,$message_id, "Please Join : *@botcodes123*","","Markdown");
return;
}
if(MemberLib_checkIsUserJoined("@botcodes123",$message_id,"$chat_id")=="left"){
bot_sendMessage($chat_id,$message_id, "Please Join : *@botcodes123*","","Markdown");
return;
}
RefLib_addRefBonus($chat_id,"balance","40");
$board=[
['💸 Balance','👫 Invite'],
[ '🗂 Wallet', '💵 Withdraw'],
['💠 Refer List']
];
$name = bot_name();
$hmm = UserLib_getNameFor($chat_id);
bot_sendKeyboard($chat_id,$message_id,$board,"*Dear $hmm Welcome To Our @$name*","","Markdown");
return;
}♻️ Command:-
📑Codes:-
💸 Balance📑Codes:-
<?php
if(chat_type($chat_id)=="private"){
$a = Assets_show($chat_id,"balance");
bot_sendMessage($chat_id,$message_id, "*🥰 User @$username\n\n🎉 Chat Id: $chat_id\n\n❤️ Current Balance : $a Rs\n\nBot Made By: @Mohd_arman_idrisi01*","","Markdown");
return;
}♻️ command:
📑 Codes
👫 Invite📑 Codes
<?php
if(chat_type($chat_id)=="private"){
$count = RefLib_checkCount($chat_id);
$ref_link = RefLib_createRefLink($chat_id,"");
bot_sendMessage($chat_id,$message_id, "*🥰User: @$username \n\n🎯Your ToTal Refers : $count\n\n⭕️ Your Ref Link : $ref_link*","","Markdown");
return;
}