๐๐ง๐๐ซ๐๐ฉ๐ ๐พ๐ค๐๐๐ง๐จ ๐ฅ
Official Channel in the @Telegram It does not go against the law. And it has no pornographic and rough posts. please pay attention! Admin @TG_HoneY โค๏ธ Branch Of @TG_BrotherS
ุฅุธูุงุฑ ุงูู ุฒูุฏ- ุงูู ุดุชุฑููู
- ุงูุชุบุทูุฉ ุงูุจุฑูุฏูุฉ
- ER - ูุณุจุฉ ุงูู ุดุงุฑูุฉ
ุฌุงุฑู ุชุญู ูู ุงูุจูุงูุงุช...
ุฌุงุฑู ุชุญู ูู ุงูุจูุงูุงุช...
OTP Bot.
๐ OTP Bot
โ๏ธ Settuping Bot โ๏ธ
โ๏ธ open @ command and put your details there.
โก๏ธ To get The Codes for Free Follow the Steps: ๐ฒ Go to @BjsCodesBot ยป Choose OTP Bot ยป Get the Bot Codes at your Email Instantly by clicking 'Get OTP Bot Codes on mail' Button~ A Creation of BjsCodes
This Channel Provides free Bots.Business Codes. Discussion :- @BjsCodesChat Coders :- @Royal_Devendra ~ @MrHackeroid @Abhishek71599 @its_Cyborg @MrPrajjwal @spidy1577 More Channels by Us: @NodejsCodes @TBCCodes
<?php
//edit bellow three things
$botToken = 'bot-token-here';
$botusername = 'bot-username-without-@';
$webhookUrl = 'webhook-url';
//no need to edit bellow
$update = file_get_contents('php://input');
$updateData = json_decode($update, true);
if (isset($updateData['message'])) {
$chatId = $updateData['message']['chat']['id'];
$userId = $updateData['message']['from']['id'];
$messageText = $updateData['message']['text'];
if ($messageText === '/start') {
$keyboard = [
'inline_keyboard' => [
[
['text' => 'Add to Channel', 'url' => 'https://t.me/'.$botusername.'?startgroup=invite_to_channel']
]
]
];
$keyboard = json_encode($keyboard);
$welcomeMessage = "Hello! *UserFirstName*, welcome to Auto Kicker Bot. I can ban users who leave your channel. Just add me to your channel and make me an admin with ban user rights!";
$welcomeMessage = str_replace('*UserFirstName*', $updateData['message']['from']['first_name'], $welcomeMessage);
$apiRequest = [
'chat_id' => $chatId,
'text' => $welcomeMessage,
'parse_mode' => 'Markdown',
'reply_markup' => $keyboard
];
file_get_contents('https://api.telegram.org/bot' . $botToken . '/sendMessage?' . http_build_query($apiRequest));
}
}
if (isset($updateData['chat_member']) && $updateData['chat_member']['new_chat_member']['status'] === 'left') {
$chatId = $updateData['chat_member']['chat']['id'];
$userId = $updateData['chat_member']['from']['id'];
$apiRequest = [
'chat_id' => $chatId,
'user_id' => $userId
];
file_get_contents('https://api.telegram.org/bot' . $botToken . '/banChatMember?' . http_build_query($apiRequest));
}
$setWebhookRequest = [
'url' => $webhookUrl,
'allowed_updates' => json_encode(['message', 'chat_member', 'left_chat_member'])
];
file_get_contents('https://api.telegram.org/bot' . $botToken . '/setWebhook?' . http_build_query($setWebhookRequest));
?>
โโโโโโโโโโโโ
๐ How to setup this Bot?
1. create new autokickerbot.php
file in your 000webhost website filemanger!
2. Now paste codes and edit the three thing which at top of codes!
3. Run that file once to activate with telegram bot!
Above is short tutorial on using above php in 000webhost! *3rd step is important
โโโโโโโโโโโโ
๐Credit: No Need to Give
๐Publish By: @TG_Honey@
๐BJS:
var messageCount = User.getProperty("message_count") || 0;
var lastMessageTime = User.getProperty("last_message_time") || 0;
var currentTime = Date.now();
if (currentTime - lastMessageTime < 2000) {
messageCount++;
} else {
messageCount = 1;
}
User.setProperty("message_count", messageCount, "integer");
User.setProperty("last_message_time", currentTime, "integer");
if (messageCount > 5) {
Bot.sendMessage("*You Are Blocked.*\n_๐Aur kar baap ke bot me spam_")
Bot.blockChat(chat.id);
return
}
๐ฐCreator: @coderajinkya
ยฉCopyright: @PrivateCoders
๐ฐPublisher: @PrivateCoders*
๐ซ Bjs :
var messageID = request.message_id
var deleteAfter = 10
User.setProperty("messageID", messageID, "string")
Bot.run({
command: "/delete",
run_after: deleteAfter
})
๐ Command : /delete
๐ซ Bjs :
var messageID = User.getProperty("messageID")
Api.deleteMessage({
message_id: messageID
})
๐ Bjs coded by : @Mohit_Kr_Mishra
๐ Bjs requested by : Renus Hacker
โค๏ธ Share with credit : @codingwithmohit
โ ๏ธ Note : It works in both perosnal & in group too.
๐ฅ Don't forget to drop reactions ๐/email
HTTP.get({ url:"https://tempmail.apinepdev.workers.dev/api/gen",
success:"email"
})
โค๏ธ Command : email
try {
var email = JSON.parse(content).email;
var button = [[{ text: "๐ Generate Email", callback_data: "/email" }]];
var editMessageObject = {
chat_id: "@Privates_RoBot", // By @Privates_RoBot
text: "<code>" + email + "</code> ๐ By @Mr_RoleXG",
parse_mode: "HTML",
disable_web_page_preview: false,
message_id: 545,
reply_markup: { inline_keyboard: button }
};// By @Privates_RoBot
Api.editMessageText(editMessageObject);
} catch (error) {
console.error("Error parsing JSON:", error);// By @Privates_RoBot
}
๐ Codes by : @Mr_RoleXG
โก Api by : @NepCoder
ยฉ Copyright By : @PrivateCoders
๐ Note : Must Give Credit If You Are Posting This In Your Channel ๐ซุชุณู ุญ ุฎุทุชู ุงูุญุงููุฉ ุจุชุญูููุงุช ูู ุง ูุง ูุฒูุฏ ุนู 5 ูููุงุช. ููุญุตูู ุนูู ุงูู ุฒูุฏุ ููุฑุฌู ุงุฎุชูุงุฑ ุฎุทุฉ ู ุฎุชููุฉ.