Flex Coder
1.97K subscribers
250 photos
47 videos
2 files
219 links
Uɴʟᴇᴀsʜ Tʜᴇ Pᴏᴡᴇʀ Oғ Bᴏᴛ Cᴏᴅɪɴɢ. Gᴇᴛ Fʀᴇᴇ Bᴏᴛ & Cᴏᴅᴇ Oɴ Oᴜʀ Cʜᴀɴɴᴇʟ 🧑‍💻

🔰 Oᴜʀ Yᴏᴜᴛᴜʙᴇ Cʜᴀɴɴᴇʟ: https://www.youtube.com/@Flex_Coder

📞 Cᴏɴᴛᴀᴄᴛ Us Oɴ: @Flex_Hide
🌐 Oɴʟɪɴᴇ Fʀᴏᴍ: 3\07\2024
Download Telegram
Use Flex Image For Hosting Your Image Serverless 🙂

Host Your Image For Temporarily And Use Url In Your Project 📂

24/7 Online Bot & Unqiue Image Host 😉
👍3😍1
BB Server Down 😂
👍2❤‍🔥1
Good Morning
👍1🙏1
📍Use Flex Repo For Github Searching Repositories


Get All Repositories Just In One Search, With Rate And More...

You Will Get All Type Of Repository, As Per Your Need 😉


🤖 Bot: @FlexRepoBot
👍1😁1
Good Night 😴
👍1👏1
Good Morning 🌻
👍2🎉1
🧑🏻‍💻 Age of Programming Languages

🦅 Swift (10 years old) (2014) 
🔷 TypeScript (11 years old) (2012) 
🚀 Kotlin (12 years old) (2011)
🎯 Dart (13 years old (2011)
🦀 Rust (13 years old) (2010) 
🐹 Go (14 years old) (2009) 
🎸 C# (23 years old) (2000) 
💎 Ruby (28 years old) (1995) 
☕️ Java (28 years old) (1995) 
🌐 JavaScript (28 years old) (1995) 
🐘 PHP (29 years old) (1994) 
🐍 Python (33 years old) (1991) 
🐪 Perl (36 years old) (1987) 
🚀 C++ (38 years old) (1985) 
📱 Objective-C (39 years old) (1984) 
🔍 Prolog (51 years old) (1972) 
🗣 Smalltalk (51 years old) (1972) 
🖥 C (51 years old) (1972) 
📝 Pascal (53 years old) (1970) 
🎓 BASIC (59 years old) (1964) 
💼 COBOL (64 years old) (1959) 
🤖 Lisp (65 years old) (1958) 
📜 Fortran (66 years old) (1957)
👍3🔥1
😎 Bot Business Basic To Advance Part 2 Video Wil Be Coming Tommorrow...
2👍2
Accept Star Payment In Bot


👀Command: /pay

Api.sendInvoice({
chat_id: user.telegramid, //chat id to send invoice at
title: "Product",
//add a product name
description: "This is a Digital Product",
//add a description of your product here
payload: "payload",
//add a payload, which you want after successful of payment. for example order id...
currency: "XTR", //for telegram stars
provider_token: "", //empty string for telegram stars
//protect_content: true,
//uncomment if you don't want forwarding post
start_parameter: "star",
//if the invoice messgae is forwarded, in place of Pay button it will show a deep link to your bot with this parameter
prices: [
{
label: "test", //add a label
amount: 1 //Amount of Telegram Stars
}
],
reply_markup: {
inline_keyboard: [[{ text: "Buy for ⭐️ 1", pay: true }]]
//the first star emoji in text of pay button of keyboard will be converted to Telegram star icon
}
})
👍1🥰1💯1
Good Morning 🌻
😍1
Which Bot You Want 🤔?

Comment Down 👇
👍1👌1
Telgram Link Detector And Remover Bot 🎀

<?php

$token = "YOUR_BOTTOKEN";
$webhookURL = "YOUR_WEBHOOK_URL";
$apiURL = "https://api.telegram.org/bot$token/";

$response = file_get_contents($apiURL . "setWebhook?url=" . urlencode($webhookURL));

if ($response) {
    echo "Webhook has been set!";
} else {
    echo "Failed to set the webhook!";
}

$update = json_decode(file_get_contents("php://input"), true);

function containsMarkdownLink($message) {
    $decoded_message = json_decode('"' . $message . '"');
    return preg_match('/\[(.*?)\]\((.*?)\)/', $decoded_message);
}

function containsTextLinkEntity($update) {
    $entities = $update["message"]["entities"] ?? [];

    foreach ($entities as $entity) {
        if ($entity["type"] === "text_link") {
            return true;
        }
    }
    return false;
}


if (isset($update["edited_message"])) {
    $editedMessage = $update["edited_message"];
    $chatID = $editedMessage["chat"]["id"];
    $editedText = $editedMessage["text"];

    if (
        preg_match('/\b(?:https?:\/\/|www\.)\S+\b/i', $editedText) ||
        containsMarkdownLink($editedText) ||
        containsTextLinkEntity($editedMessage) ||
        preg_match('/\b\w+\.(com|net|org|io|etc)\b|\b\w+\.\w+\b/i', $editedText) ||
        strpos($editedText, '.') !== false
    ) {
        file_get_contents($apiURL . "deleteMessage?chat_id=$chatID&message_id=" . $editedMessage["message_id"]);

        if (isset($editedMessage["from"]["username"])) {
            $username = $editedMessage["from"]["username"];
            $adminID = YOUR_ADMIN_ID_HERE;//replace your redmi ID
            if ($adminID) {
                $messageToAdmin = "⚠️ <b>Alert!</b> @$username edited a message and added a link:\n$editedText";
                file_get_contents($apiURL . "sendMessage?chat_id=$adminID&text=" . urlencode($messageToAdmin) . "&parse_mode=HTML");
            }
        }
    }

} elseif (isset($update["message"])) {
    $message = $update["message"]["text"];
    $chatID = $update["message"]["chat"]["id"];
    $username = $update["message"]["from"]["username"]; // Get the sender's username
    $adminID = ADMIN ID;
    $lowercaseMessage = strtolower($message);
    if ($message == "/start") {
  
        $welcomeMessage = "🌟 <b>Welcome to the bot!</b>\nTo prevent certain messages, please <b>make me an admin</b> in your channel.";
        file_get_contents($apiURL . "sendMessage?chat_id=$chatID&text=" . urlencode($welcomeMessage) . "&parse_mode=HTML");
    } else {


        if (
            strpos($message, '@') === 0 ||
            strpos($lowercaseMessage, 't.me/') !== false ||
            strpos($lowercaseMessage, 'telegram.me/') !== false ||
            preg_match('/\b(?:https?:\/\/|www\.)\S+\b/i', $message) ||
            containsMarkdownLink($message) ||
            containsTextLinkEntity($update) ||
            preg_match('/\b\w+\.(com|net|org|io|etc)\b|\b\w+\.\w+\b/i', $message) ||
            strpos($message, '.') !== false
        ) {
            file_get_contents($apiURL . "deleteMessage?chat_id=$chatID&message_id=" . $update["message"]["message_id"]);

            if ($username && $adminID) {
                $messageToAdmin = "⚠️ <b>Alert!</b> @$username sent a message:\n$message";
                file_get_contents($apiURL . "sendMessage?chat_id=$adminID&text=" . urlencode($messageToAdmin) . "&parse_mode=HTML");
            }


            $warning = "⚠️ <b>Sorry!</b> Links are not allowed in this chat!";
            file_get_contents($apiURL . "sendMessage?chat_id=$chatID&text=" . urlencode($warning) . "&parse_mode=HTML");
        }
    }
}

?>
👍2🔥1
Good Night 😴
👍1🔥1
🤗 Introduction Flex Codes The Free Source Of Code In File Format

Features You Will Get?

➡️ Best Code File
➡️ Just Download File And Add To Your Server
➡️ Get Bot & Api Codes For Free
➡️ More Coming Soon....

😶‍🌫️ Bot => @FlexCodesBot
1👍1
Good Night 🤧
👍1👏1