Last active
January 23, 2026 01:31
-
-
Save haxpor/1b86041f3fd0c7e440893dfae3b6b1a6 to your computer and use it in GitHub Desktop.
How to set webhook url for bot on Telegram
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://api.telegram.org/bot<bot-token>/setWebhook?url=<webhook-url> | |
| <bot-token> - bot token get from BotFather on Telegram | |
| <webhook-url> - webhook url in base64 |
muradsheikh8020-a11y
commented
Jan 23, 2026
query("INSERT IGNORE INTO users (user_id) VALUES ('$user_id')");
function sendMessage($chat_id, $msg, $keyboard=null){
global $apiURL;
$data = [
'chat_id'=>$chat_id,
'text'=>$msg,
'parse_mode'=>'HTML'
];
if($keyboard){
$data['reply_markup'] = json_encode($keyboard);
}
file_get_contents($apiURL."sendMessage?".http_build_query($data));
}
$menu = [
'keyboard'=>[
['π° Balance','β Add Balance'],
['π Buy Service','π Price List']
],
'resize_keyboard'=>true
];
if($text=="/start"){
sendMessage($chat_id,
"π€ Welcome to Social Booster Pro\n\nChoose optionπ",
$menu);
}
elseif($text=="π° Balance"){
$q=$conn->query("SELECT balance FROM users WHERE user_id='$user_id'");
$b=$q->fetch_assoc()['balance'];
sendMessage($chat_id,"π° Your Balance: $b tk");
}
elseif($text=="π Price List"){
sendMessage($chat_id,
"π Service Price List\n
π€ Profile Follow 1k = 40 tk
π₯ Video Views 1k = 25 tk
π Reel Views 1k = 20 tk
π Post Reaction 1k = 35 tk
π¬ Low Comment 1k = 50 tk");
}
elseif($text=="β Add Balance"){
sendMessage($chat_id,
"π³ Payment Method\n
π² Bkash: 019XXXXXXXX
π² Nagad: 019XXXXXXXX\n
Send screenshot & Txn ID");
}
elseif($text=="π Buy Service"){
sendMessage($chat_id,
"π Order System Coming Soon\n(Admin API connect ΰ¦ΰ¦°ΰ¦€ΰ§ হবΰ§)");
}
/start
/newbot
Bot Name: Social Booster Pro
Username: social_boosterpro_bot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment