اكواد ♡ ⎙ ᑭᕼᑭ،ᑭY،ᒪᑌᗩ،⏎
قناة محتواها تجميعه اكواد من مبرمجين و مطورين عرب 🌍 مجمعه بواسطة : @hms_01 ──────────────── 🕰╽الساعة الان بتوقيت السعوديه⇜ 11:45 م ؛ 🌏╽يونيو/2024/6/16 ؛ 🌈╽اليوم⇜ الأحد ؛
نمایش بیشتر687
مشترکین
اطلاعاتی وجود ندارد24 ساعت
+117 روز
-2230 روز
آرشیو پست ها
↫︙كود بوت حضر اي شخص يغادر من الدردشة 🔻
# Requier Pyrogram Modules
from pyrogram import Client, filters, types
import asyncio
# Config app Class
class Config:
API_KEY : str ="API_KEY"
API_HASH : str = "95f5f60466a696e33a34f297c734d048"
API_ID : int = 22119881
app = Client(
'rad',
bot_token=Config.API_KEY,
api_hash=Config.API_HASH,
api_id=Config.API_ID
)
# On Left Member Filter
def on_left_member():
def func(_, __, message: types.Message):
return True if message.old_chat_member else False
return filters.create(func)
# On left member
@app.on_chat_member_updated(on_left_member())
async def ON_LEFT_MEMBER(app: Client, message: types.Message):
# Bind Chat Member
await app.ban_chat_member(
chat_id=message.chat.id, user_id=message.from_user.id
)
# Run Pyrogram App
asyncio.run(app.run())
↫︙Dev : @R_AFX ↫︙CH @radfx2 ⭐👍 2
↫︙كود مغادر جميع القنوات و الجموعات الي بل حساب معا حذف المحدثات من الحساب 🔻
# Requier Moduels
from pyrogram import Client, enums
import asyncio
# Config Bot
class Config:
SESSION : str = "<SESSIONS>"
API_HASH : str = "95f5f60466a696e33a34f297c734d048"
API_ID : int = 22119881
async def LEAVE_ALL_CHAT(sessions: str):
# Start Pyrorgam App
app = Client(":memeory:", api_hash=Config.API_HASH, api_id=Config.API_ID,session_string=sessions, in_memory=True, workers=3, no_updates=True)
# Start App
try:
await app.connect()
me = await app.get_me()
except Exception as e:
await app.disconnect()
return False
# Start Levae Chat
async for chat in app.get_dialogs():
# Check Chat Tyrp
if chat.chat.type in [enums.ChatType.CHANNEL , enums.ChatType.SUPERGROUP ,enums.ChatType.GROUP]:
# Leave Chat
await app.leave_chat(chat.chat.id, delete=True)
# Disconnect Pyrogrma Client
await app.disconnect()
asyncio.run(LEAVE_ALL_CHAT(
Config.SESSION
))
↫︙Dev : @R_AFX ↫︙CH @radfx2 ⭐php
$update = json_decode(file_get_contents('php://input'));
$message =$update->message;
$chat_id =$message->chat->id;
$text =$message->text;
$sudo = array("5401732523","","","","","","");
$mid = $message->message_id;
$del = explode(' ', $text);
$get_dele = file_get_contents('delete.txt');
$dele = explode( "\n" , $get_dele);
if($text == 'تفعيل الحذف' and in_array($from_id,$sudo) and ! in_array($chat_id , $dele)){
file_put_contents('delete.txt' ,"\n" . $chat_id, FILE_APPEND);
bot('sendmessage',[
'chat_id' =>$chat_id,
'text'=>'اهلا عزيزي المطور تم تفعيل امر حذف الرسائل',
'parse_mode' =>"markdown",
'reply_to_message_id'=>$message->message_id,
]);}
if($text == 'تفعيل الحذف' and !in_array($from_id,$sudo) and in_array($chat_id , $dele)){
bot('sendmessage',[
'chat_id' =>$chat_id,
'text'=>'عذرا عزيزي الامر ليس لك',
'parse_mode' =>"markdown",
'reply_to_message_id'=>$message->message_id,
]);}
if($text == 'تعطيل الحذف' and in_array($from_id,$sudo) and in_array($chat_id , $dele)){
$Close = file_get_contents("delete.txt");
$str = str_replace($chat_id , ' ', $Close);
file_put_contents("delete.txt",$str);
bot('sendMessage', [
'chat_id'=>$chat_id,
'text'=>'اهلا عزيزي المطور تم تعطيل امر الحذف',
'parse_mode' =>"markdown",
'reply_to_message_id'=>$message->message_id,
]);}
if($text == 'تعطيل الحذف' and !in_array($from_id,$sudo) and in_array($chat_id , $dele)){
bot('sendmessage',[
'chat_id' =>$chat_id,
'text'=>'عذرا عزيزي الامر ليس لك',
'parse_mode' =>"markdown",
'reply_to_message_id'=>$message->message_id,
]);}
if($del[0] == 'حذف' and isset($del[1]) and $del[1] < 90 and in_array($chat_id , $dele) and in_array($from_id , $sudo)){
for($i = $mid - $del[1]; $i < $mid; $i++){
bot('deleteMessage',[
'chat_id'=>$chat_id,
'message_id'=>$i,
]);}
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"تم حذف ".$del[1]." من الرسائل ",
]);}
if($del[0] == 'حذف' and isset($del[1]) and $del[1] > 90 and in_array($chat_id , $dele) and in_array($from_id , $sudo)){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>'عذرا عزيزي ممنوع حذف 100 رساله فما فوق'
]);}
if($del[0] == 'حذف' and isset($del[1]) and $del[1] < 90 and in_array($chat_id , $dele) and !in_array($from_id , $sudo)){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>'عذرا عزيزي الامر ليس لك'
]);}
كود بسيط حذف رسائل اذا احد يحتاجه
@l_b10$update = json_decode(file_get_contents('php://input'));
$message = $update->message;
$message_id = $update->message->message_id;
$chat_id = $message->chat->id;
$text = $message->text;
if (preg_match('/^مسح\s+\d+$/', $text)) {
preg_match('/\d+/', $text, $matches);
$count = intval($matches[0]);
for ($i = 0; $i < $count; $i++) {
bot('deleteMessage', [
'chat_id' => $chat_id,
'message_id' => $message_id - $i,
]);
}
}
دا كود من ملف الحمايه الي بعمله
تكتب مسح + عدد الرسايل ال عايز تمسحها
كود سهل جدا
خاص ب @Abdo_1
كل ال طالبه دعوه حلوه عشان داخل على امتحانات ♥↫︙فنكشن تحقق من تنسيق معرف تليكرام🔻
↫︙Function Check Telegram Username Format 🔻
def is_telegram(username: str) :
return type(username[0]) == str and username.isidentifier() and len(username) > 4 and len(username) < 32
# The Result
is_telegram('r_afx') # True
is_telegram('xxxx') # False
is_telegram('xx-x') # False
is_telegram('3aaaa') # False
↫︙Dev : @R_AFX ↫︙CH @radfx2 ⭐️↫︙ فنكشن ترجمة كوكل php 🔻
↫︙Function Translate Google 🔻
function translate($text,$source_lang='auto',$target_lang='ar'){
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://translate.googleapis.com/translate_a/single?client=gtx&dt=t',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => 'sl='.$source_lang.'&tl='.$target_lang.'&q='.urlencode($text),
CURLOPT_HTTPHEADER => array(
'Content-Type: application/x-www-form-urlencoded'
),
));
$response = curl_exec($curl);
curl_close($curl);
$sentencesArray = json_decode($response, true);
$sentences = "";
foreach ($sentencesArray[0] as $s) {
$sentences .= isset($s[0]) ? $s[0] : '';
}
return $sentences;
}
$R = translate('hi','en', 'ar');
echo $R;
# The Result
$trans = translate('Hi Man', 'auto', 'ar') # مرحبا يا رجل
.
↫︙Dev : @R_AFX ↫︙CH @radfx2 ⭐️👍 1
$update = json_decode(file_get_contents('php://input'));
if ($update->callback_query) {
$data = $update->callback_query->data;
$chat_id = $update->callback_query->message->chat->id;
$message_id = $update->callback_query->message->message_id;
$name = $update->callback_query->message->chat->first_name;
$from_id = $update->callback_query->from->id;
} elseif ($update->message) {
$message = $update->message;
$message_id = $update->message->message_id;
$chat_id = $message->chat->id;
$text = $message->text;
$name = $message->from->first_name;
$from_id = $message->from->id;
}
$nogom = [];
if (file_exists('nogom.json')) {
$nogom = json_decode(file_get_contents('nogom.json'), true);
}
if ($text == "تقييم") {
$average_rating = $nogom ? array_sum($nogom) / count($nogom) : 0;
$nogomall = count($nogom);
$stars = str_repeat("⭐", round($average_rating));
$average_rating = round($average_rating, 1);
bot('sendMessage', [
'chat_id' => $chat_id,
'text' => "
Evaluation
$stars ($average_rating)
عدد المشاركين في التقييم --> ($nogomall)
يرجى المشاركة في تقييم البوت من خلال الأزرار",
'parse_mode' => "markdown",
'reply_markup' => json_encode([
'inline_keyboard' => [
[['text' => "⭐", 'callback_data' => "1"]],
[['text' => "⭐⭐", 'callback_data' => "2"]],
[['text' => "⭐⭐⭐", 'callback_data' => "3"]],
[['text' => "⭐⭐⭐⭐", 'callback_data' => "4"]],
[['text' => "⭐⭐⭐⭐⭐", 'callback_data' => "5"]],
]
])
]); // خاص ب عبدو @abdo_1
} elseif (in_array($data, ["1", "2", "3", "4", "5"])) {
$rating = (int)$data;
$nogom[$chat_id] = $rating;
file_put_contents('nogom.json', json_encode($nogom));
$average_rating = array_sum($nogom) / count($nogom);
$stars = str_repeat("⭐", round($average_rating));
$average_rating = round($average_rating, 1);
bot('editMessagetext', [
'chat_id' => $chat_id,
'message_id' => $message_id,
'text' => "شكرا لتقييمك
Evaluation
$stars ($average_rating)
",
'parse_mode' => "markdown",
'reply_markup' => json_encode([
'inline_keyboard' => [
[['text' => "إعادة التقييم", 'callback_data' => "nogom"]],
]])
]);
bot("sendMessage", [
"chat_id" => $admin,
"text" => "تم تقيم البوت من $name
تقييمه للبوت $rating ⭐
Acount ",
"parse_mode" => "markdown",
'reply_markup' => json_encode([
'inline_keyboard' => [
[['text' => "إرسال شكر 🌹", 'callback_data' => "shkr|$from_id|$name"]],
]])
]);
} elseif(explode("|", $data)[0] == "shkr") {
$from_id = explode("|", $data)[1];
$name = explode("|", $data)[2];
bot("editMessagetext",[
"chat_id" => $chat_id,
'message_id' => $message_id ,
"text" => "
* -تم ارسال رسالة شكر لـ *$name ✓
" ,
"parse_mode" => "markdown",
]);
bot("sendMessage", [
"chat_id" => $from_id ,
"text" => "
*- شكرا لك على تقييمنا هذا الشكر موجه لك من مالك البوت شخصيا 😊♥*
", #@abdo_1
"parse_mode" => "markdown",
]);
}
كود ال تقييم البوتات موجود ف بوتي بعض الناس طلبوه
كتابتي تخمط اذكر المصدر @abdo_1 √
تبعت تقييم
وهتظهر لوحة التقييم
المتغيرات متعرفه ممكن تحطه ف اخر الملف بتاعك
الكود كتابتي وواخد الفكره من قناة همس
كل الي طالبه دعوه حلوه عشان امتحاناتي قربت 💔php
if(preg_match('/[أ-ي]|[a-z]/', $text)){
bot('sendmessage',[
"chat_id"=>$chat_id,
"text"=>"بدا التصميم"]);
bot("sendMediaGroup",[
"chat_id"=>$chat_id,
"media"=>json_encode([
["type"=>"photo","media"=>"https://meaningnames.net/write/1/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/2/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/3/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/4/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/5/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/6/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/7/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/8/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/9/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/10/$text.png"]
]),
]);
bot("sendMediaGroup",[
"chat_id"=>$chat_id,
"media"=>json_encode([
["type"=>"photo","media"=>"https://meaningnames.net/write/11/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/12/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/13/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/14/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/15/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/16/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/17/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/18/$text.png"],
["type"=>"photo","media"=>"https://meaningnames.net/write/19/$text.png"],
]),
]);
}
كود بسيط يصمملك اسمك بـ 19 شكل يدعم العربي والانكليزي 🧡
@l_b10 💙function getHoroscope(fm)
local monthNames = {"يناير", "فبراير", "مارس", "ابريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"}
local dayNames = {"السبت", "الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة"}
local month = os.date("%m")
local day = dayNames[tonumber(os.date("%w")) + 1]
local sh = os.date("%d")
local year = os.date("%Y")
local url = "https://arabhaz.com/wp/"
local request_body = string.format("fm=%s", fm)
local response_body = {}
local res, code, response_headers = http.request(url, request_body)
if code == 200 then
local s1 = res:match("<strong>توقعات برج " .. fm .. " </strong>(.-)<strong>توقعات برج " .. fm .. " عاطفياً</strong>")
if s1 then
local a1 = s1:gsub("<[^>]+>", "")
local alll = string.format("برج %s | %s | %s | %s | %s\n⇜ من الناحية العامة : %s", fm, day, sh, monthNames[tonumber(month)], year, a1)
print(alll)
return alll
end
else
print("Error")
end
end
•┈┈• ❀ 🍃🤍🍃 ❀ •┈┈•
كود ابراج لغة الكود lua
مقدم من :
@BKXBB
Photo unavailableShow in Telegram
للناس الي عاوزه تغير شكل برنامج تيرمكس اولا لازم تحذف واجهة البرنامج الاساسيه من خلال الاوامر
1- cd ..
2- ls
3- cd usr/etc
4- ls
5- rm -rf motd
طريقة استخدام الاداة
1- apt update
2- apt upgrade
3- apt install git
4- git clone https://github.com/remo7777/T-Header
5- ls
5- cd T-Header
6-ls
7- chmod +x *
8- ls
9- bash t-header.sh
بعد ما يخلص التحميل تضهرلك الاداة اضغط y واعطيه سماح بعدها اكتب اسمك واخرج من البرنامج خالص ورجع ثاني وبس راح يتغير شكل البرنامج مثل الي في الصوره 🌸
<?php
$counterFile = 'raf.txt';
if (file_exists($counterFile)) {
$count = (int)file_get_contents($counterFile);
$count++;
file_put_contents($counterFile, $count);
} else {
$count = 1;
file_put_contents($counterFile, $count);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>شكد يشوفون الموقع يوميا</title>
</head>
<body>
<h1>هلا حبقلبي هاذ كود تعليمي شلون تخزن عدد الزيارات اليوميه </h1>
<p>شكد زارو الموقع للان: <?php echo $count; ?></p>
</body>
<style>
h1{
color: red;
}
</style>
</html>
السلام عليكم هاذ كود بسيط الغرض منه للتعليم فقط سهل اصلا
يخزن اي زياره للموقع ببساطه يضيف 1 لكل زياره وشكرا
@php_RaF❤ 1
↫︙كود ردود تلقائيا بطريقا جديد 😄
↫ : تضيف الرود داخل ال ReplyWords ⭐
😄↫︙Module : Python ↫ Pyrogram 🖥
# Requier Modules from pyrogram import Client, filters, types # Start Pyrogram App app = Client() ReplyWords = { 'مرحبا':"اهلاً", 'السلام عليكم':'عليكم السلام' , } # FIlter Is Word def IS_REPLY(): def func(_, __, message: types.Message): return message.text in ReplyWords.keys() return filters.create(func) @app.on_message(IS_REPLY()) async def ON_REPLY_MESSAGE(app: Client ,message: types.Message): await message.reply( text=ReplyWords[message.text] ) asyncio.run(app.run())↫︙Dev : @R_AFX ↫︙CH @radfx2 ⭐️
↫︙كود يحذف اي رسال موجود فيها كلمة موجودة داخل الستا يفيد بوتات الحماية
✔️😄
↫︙تحتاج سيشين Pyrogram
😄↫︙Module : Python ↫ Pyrogram 🖥
# Requier Moudles
from pyrogram import Client
import asyncio
# Requier Pyrogram Modules from pyrogram import Client, filters, types import asyncio import re # Start PYrogram App app = Client( name='radApp', bot_token="<BOT_TOKEN>" , # Bot API_KEY Or Toekn api_hash="5cxxxxxxxxxxxxxxxx" , # Bot Api Hash api_id="23xxxxx", # Bot Api ID ) # Word List BlockWordList = ['rad', 'fx'] # Blcok Word filters def word_filters(data: list): def func(flt, _, message: types.Message): for word in flt.data: if re.findall(word, message.text): return True return False return filters.create(func, data=data) @app.on_message(filters.text & filters.group & word_filters(BlockWordList)) async def ON_NEW_MESSAGE(app: Client, message: types.Message): # Delete Message await app.delete_messages( chat_id=message.chat.id, message_ids=message.id ) asyncio.run(app.run())↫︙Dev : @R_AFX ↫︙CH @radfx2 ⭐️
@app.on_message(filters.text, group=57355566)
async def d5on(client, message):
if message.text == "😒":
await message.reply_text(f"عدل وشك ونت بتكلمني 😒🙄")
elif message.text == "💋":
await message.reply_text(f" نا عايز مح انا كمان 🥺💔")
elif message.text == "😭":
await message.reply_text(f"بتعيط تيب لي طيب 😥")
elif message.text == "🥺":
await message.reply_text(f"متزعلش بحبك 😻🤍")
elif message.text == "😂":
await message.reply_text(f"ضحكتك عثل زيكك ينوحيي 🌝❤️")
elif message.text == "🤔":
await message.reply_text(f"بتفكر في اي 🤔")
elif message.text == "🌚":
await message.reply_text(f"القمر ده شبهك 🙂❤️")
elif message.text == "نعم":
await message.reply_text(f" نعم الله عليك 🌚❤️")
elif "." in message.text:
await message.reply_text(f"صلي علي النبي وتبسم ✨♥")
elif message.text == "سلام":
await message.reply_text(f" مع الف سلامه يقلبي متجيش تاني 😹💔🎶")
elif message.text == "🙄":
await message.reply_text(f" نزل عينك تحت كدا علشان هتخاد علي قفاك 😒❤️")
elif message.text == "برايفت":
await message.reply_text(f"خدوني معاكم برايفت والنبي 🥺💔")
elif message.text == "السلام عليكم":
await message.reply_text(f"وعليكم السلام 🌝💜")
elif message.text == "هاي":
await message.reply_text(f"هآي تع اشب شااي • 😹💔")
elif message.text == "محح":
await message.reply_text(f" محات حياتي يروحي 🌝❤️")
elif message.text == "بحبك":
await message.reply_text(f"وانا كمان بعشقك يا روحي 🤗🥰")
elif message.text == "الحمدلله":
await message.reply_text(f"دايما ياحبيبي 🌝❤️")
elif message.text == "هشش":
await message.reply_text(f" بنهش كتاكيت احنا هنا ولا اي ??😹")
elif message.text == "هلا":
await message.reply_text(f" هلا بيك ياروحي 👋")
elif message.text == "بف":
await message.reply_text(f"وحيات امك ياكبتن خدوني معاكو بيف 🥺💔")
elif message.text == "خاص":
await message.reply_text(f"ونجيب اشخاص 😂👻")
elif message.text == "بخير":
await message.reply_text(f"انت الخير يعمري 🌝❤️")
elif message.text == "اه":
await message.reply_text(f" اه اي يا قدع عيب 😹💔")
elif message.text == "حصل":
await message.reply_text(f"خخخ امال 😹")
elif message.text == "تع":
await message.reply_text(f"لا عيب بتكسف 😹💔")
elif message.text == "منور":
await message.reply_text(f" ده نورك ي قلبي 🌝💙")
elif message.text == "ويت":
await message.reply_text(f" اي الثقافه دي 😒😹")
elif message.text == "خخخ":
await message.reply_text(f" اهدا يوحش ميصحش كدا 😒?")
elif message.text == "باي":
await message.reply_text(f"ع فين لوين رايح وسايبنى 🥺💔")
elif message.text == "شكرا":
await message.reply_text(f"العفو ياروحي 🙈🌝")
elif message.text == "حلوه":
await message.reply_text(f" انت الي حلو ياقمر 🤤🌝")
elif message.text == "بموت":
await message.reply_text(f"موت بعيد م ناقصين مصايب 😑😂")
elif message.text == "تيب":
await message.reply_text(f"فرح خالتك قريب 😹💋💃🏻")
elif message.text == "اي":
await message.reply_text(f"جتك اوهه م سامع ولا ايي 😹👻")
elif message.text == "حاضر":
await message.reply_text(f"حضرلك الخير يارب 🙂❤️")
elif message.text == "سي في":
await message.reply_text(f"كفيه شقط سيب حاجه لغيرك 😎😂")
elif message.text == "جيت":
await message.reply_text(f"لف ورجع تانى مشحوار 😂🚶♂👻")
elif message.text == "بخ":
await message.reply_text(f"يوه خضتني ياسمك اي 🥺💔")
elif message.text == "خلاص":
await message.reply_text(f"خلصتت روحكك يبعيد 😹💔")
elif message.text == "حبيبي":
await message.reply_text(f"اوه ياه 🌝😂")
elif message.text == "تمام":
await message.reply_text(f"امك اسمها احلام 😹😹")
كود ردود يشتغل في اي سورس الكود سهل وبسيط جدا بس جامد وينفع تعمل بيه كود سمسمي
الكود كتابه القيصر
𝗗𝗲𝗩: @c_a_s_e_r_h
𝗖𝗵: @COURSE_CAESAR↫︙فنكشن تجيب رمز التحقق الخاص بي حساب Telegram ✔️
↫︙تحتاج سيشين Pyrogram
😄↫︙Module : Python ↫ Pyrogram 🖥
# Requier Moudles from pyrogram import Client import asyncio # Get Ver Code Functions async def GET_VER_CODE(sessions: str): # Varble status, Code = False, None # Start CLient app = Client(":memory:", api_hash="", api_id="", session_string=sessions) try: await app.connect() me = await app.get_me() except: status = False return (status, Code) async for ii in app.get_chat_history(777000, limit=5): messagetext = str(ii.text) if 'رمز الدخول:' in messagetext: Code = messagetext[1+len('رمز الدخول:'):17] status = True break try:await app.disconnect() except:pass return (status, Code) status , Code = asyncio.run(GET_VER_CODE( sessions="" # pyrogram sessions ))↫︙Dev : @R_AFX ↫︙CH @radfx2 ⭐️
Photo unavailableShow in Telegram
السلام عليكم كود بسيط وحلو وجديد ممكن يفيدك
- تكدر تحطه بالبوت وتضيفه للمجموعه
- تكدر تحط call data اني حطيت رابط
- تكدر تضيف وتعدل كلشي واضح وسهل جدا
*طبعا الكود اخضته من ملف المتجر دا اشتغل عليه *😁
@bot.message_handler(func=lambda message: message.text == "شراء نقاط")
def buy_points_menu(message):
reply = "أهلاً عزيزي! إليك أسعار النقاط:\n1 نقطة = 5$\n3 نقاط = 10$\nللتواصل اضغط على الزر في الأسفل"
markup = types.InlineKeyboardMarkup()
markup.add(types.InlineKeyboardButton("تواصل معنا", url="https://t.me/x10xxx"))
bot.reply_to(message, reply, reply_markup=markup)
• يفضل تحطه قريب من دالة. start
ارسل شراء نقاط تضهر الك النافذه
• by: @x10xxx
• ch: R a F
• ch py: @python_RaF👍 1
Photo unavailableShow in Telegram
يالي كود ترجمه علي الماشي كده 😂
اتعمل ريب علي الرساله وتكتب ترجم البوت ايشوف الرساله لو عربي ايترجمها انجلش والعكس
from googletrans import Translator
translator = Translator()
async def english(message):
translation = translator.translate(message, src='ar', dest='en')
return translation.text
async def arabic(message):
translation = translator.translate(message, src='en', dest='ar')
return translation.text
@app.on_message(filters.command("ترجم", ""), group=158802982)
async def targma(client, message):
replied_message = message.reply_to_message
if replied_message:
replied_text = replied_message.text
if replied_text:
if replied_text.isascii():
translated_text = await arabic(replied_text)
else:
translated_text = await english(replied_text)
await asyncio.sleep(1)
await message.reply(translated_text)
else:
await message.reply("الرسالة التي تم الرد عليها لا تحتوي على نص.")
else:
await message.reply("الرجاء الرد على الرسالة لترجمتها.")
ثبت مكتبه علي السيرفر
pip install googletrans==4.0.0-rc1
الكود كتابة قيصر المتواضع
𝗗𝗲𝗩: @c_a_s_e_r_h
𝗖𝗵: @COURSE_CAESAR<?php
// Replace 'YOUR_BOT_TOKEN' with your actual bot token
define('BOT_TOKEN', 'YOUR_BOT_TOKEN');
// Handle '/كتب_دينية' command
if ($_GET['text'] == '/كتب_دينية') {
$rl = rand(2, 1959);
$url = "https://t.me/kotobeslameah/{$rl}";
sendMessageWithDocument($url, "💙 ¦ تـم اختيـار كتاب لـك");
}
// Handle '/احاديث_دينية' command
if ($_GET['text'] == '/احاديث_دينية') {
$rl = rand(799, 1341);
$url = "https://t.me/dmatrix12/{$rl}";
sendMessageWithPhoto($url, "💙 ¦ تـم اختيـار احاديث لـك");
}
// Handle '/تلاوات' or '/تلاوة' command
if ($_GET['text'] == '/تلاوات' || $_GET['text'] == '/تلاوة') {
$rl = rand(24, 618);
$url = "https://t.me/EIEI06/{$rl}";
sendMessageWithVoice($url, "🥹♥ ¦ تـم اختيـار تلاوة قرآنيه لـك");
}
// Handle '/خطب_دينية' command
if ($_GET['text'] == '/خطب_دينية') {
$rl = rand(2, 201);
$url = "https://t.me/fresdewi/{$rl}";
sendMessageWithVoice($url, "💙 ¦ تـم اختيـار خطبه لـك");
}
// Handle '/سورة' or '/قران' command
if ($_GET['text'] == '/سورة' || $_GET['text'] == '/قران') {
$rl = rand(2, 82);
$url = "https://t.me/opuml/{$rl}";
sendMessageWithVoice($url, "🥹♥ ¦ تـم اختيـار ايـه قرآنيه لـك");
}
// Handle '/الشيخ' or '/النقشبندي' or '/نقشبندي' command
if ($_GET['text'] == '/الشيخ' $_GET['text'] == '/النقشبندي' $_GET['text'] == '/نقشبندي') {
$rl = rand(2, 114);
$url = "https://t.me/ggcnjj/{$rl}";
sendMessageWithVoice($url, "🥹♥ ¦ تـم اختيـار الشيخ نقشبندي لـك");
}
// Handle '/عبدالباسط' or '/عبدالباسط_عبدالصمد' command
if ($_GET['text'] == '/عبدالباسط' || $_GET['text'] == '/عبدالباسط_عبدالصمد') {
$rl = rand(7, 265);
$url = "https://t.me/telawatnader/{$rl}";
sendMessageWithVoice($url, "🥹♥ ¦ تـم اختيـار الشيخ عبدالباسط لـك");
}
// Function to send message with document
function sendMessageWithDocument($url, $caption) {
$chat_id = $_GET['chat_id'];
$document = [
'chat_id' => $chat_id,
'document' => $url,
'caption' => $caption,
];
sendMessage($document);
}
// Function to send message with photo
function sendMessageWithPhoto($url, $caption) {
$chat_id = $_GET['chat_id'];
$photo = [
'chat_id' => $chat_id,
'photo' => $url,
'caption' => $caption,
];
sendMessage($photo);
}
// Function to send message with voice
function sendMessageWithVoice($url, $caption) {
$chat_id = $_GET['chat_id'];
$voice = [
'chat_id' => $chat_id,
'voice' => $url,
'caption' => $caption,
];
sendMessage($voice);
}
// Function to send the actual message using Telegram API
function sendMessage($content) {
$url = "https://api.telegram.org/bot" . BOT_TOKEN . "/sendMessage";
file_get_contents($url, false, stream_context_create([
'http' => [
'method' => 'POST',
'header' => 'Content-Type: application/json',
'content' => json_encode($content),
],
]));
}
?>
@app.on_message(filters.command(["كتب دينية"], ""))
async def ihd(client: Client, message: Message):
rl = random.randint(2,1959)
url = f"https://t.me/kotobeslameah/{rl}"
await client.send_document(message.chat.id,url,caption="💙 ¦ تـم اختيـار كتاب لـك",
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
message.from_user.first_name, url=f"https://t.me/{message.from_user.username}")
],
]
)
)
@app.on_message(filters.command(["احاديث دينية"], ""))
async def ihd(client: Client, message: Message):
rl = random.randint(799,1341)
url = f"https://t.me/dmatrix12/{rl}"
await client.send_photo(message.chat.id,url,caption="💙 ¦ تـم اختيـار احاديث لـك",
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
message.from_user.first_name, url=f"https://t.me/{message.from_user.username}")
],
]
)
)
@app.on_message(filters.command(["تلاوات", "تلاوة"], ""))
async def ihd(client: Client, message: Message):
rl = random.randint(24,618)
url = f"https://t.me/EIEI06/{rl}"
await client.send_voice(message.chat.id,url,caption="🥹♥ ¦ تـم اختيـار تلاوة قرآنيه لـك",
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
message.from_user.first_name, url=f"https://t.me/{message.from_user.username}")
],
]
)
)
@app.on_message(filters.command(["خطب دينيه"], ""))
async def ihd(client: Client, message: Message):
rl = random.randint(2,201)
url = f"https://t.me/fresdewi/{rl}"
await client.send_voice(message.chat.id,url,caption="💙 ¦ تـم اختيـار خطبه لـك",
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
message.from_user.first_name, url=f"https://t.me/{message.from_user.username}")
],
]
)
)
@app.on_message(filters.command(["سوره", "قران"], ""))
async def ihd(client: Client, message: Message):
rl = random.randint(2,82)
url = f"https://t.me/opuml/{rl}"
await client.send_voice(message.chat.id,url,caption="🥹♥ ¦ تـم اختيـار ايـه قرآنيه لـك",
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
message.from_user.first_name, url=f"https://t.me/{message.from_user.username}")
],
]
)
)
@app.on_message(filters.command(["الشيخ", "النقشبندي", "نقشبندي"], ""))
async def ihd(client: Client, message: Message):
rl = random.randint(2,114)
url = f"https://t.me/ggcnjj/{rl}"
await client.send_voice(message.chat.id,url,caption="🥹♥ ¦ تـم اختيـار الشيخ نقشبندي لـك",
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
message.from_user.first_name, url=f"https://t.me/{message.from_user.username}")
],
]
)
)
@app.on_message(filters.command(["عبدالباسط", "عبدالباسط عبدالصمد"], ""))
async def ihd(client: Client, message: Message):
rl = random.randint(7,265)
url = f"https://t.me/telawatnader/{rl}"
await client.send_voice(message.chat.id,url,caption="🥹♥ ¦ تـم اختيـار الشيخ عبدالباسط لـك",
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
message.from_user.first_name, url=f"https://t.me/{message.from_user.username}")
],
]
)
)
اكواد اسلاميه هتفيد السورسات والبوتات لغه بايثون مكتبه بايروجرام
@Almortagel_12
import requests
import json
import random
tokens = ["token1", "token2", "token3"] # Add your bot tokens here
chat_id = "your_chat_id"
emojis = ["🔥", "❤️", "😊"] # Add your emojis here
message_ids = [str(i) for i in range(1, 21)] # Generate message IDs from 1 to 20
def bot(token, method, datas={}):
url = "https://api.telegram.org/bot" + token + "/" + method
response = requests.post(url, data=datas)
if response.status_code != 200:
return "Error: " + response.text
else:
return response.json()
for token in tokens:
for message_id in message_ids:
random_emoji = random.choice(emojis)
response = bot(token, 'setmessagereaction', {
'chat_id': chat_id,
'message_id': message_id,
'reaction': json.dumps([{'type': "emoji", "emoji": random_emoji}])
})
print(response)
كود تفاعل بواسطه البوتات
الكود مش بتاعي بس عدلت عليه
انت هتحط التوكن تقدر تحط توكنات من هنا ل بكرا عادي
و هتحط ايدي القناة الي حابب يوصل عليها الرشق
وتاني حاجه تقدر تحط اكثر من ايموجي و هو هيختار عشوائي
و تالت حاجه هتحدد الي هيترشق من كام ل كام انا عاملها من 1 ل 21 انت عدله حسب رغبتك
لا تنسي ان تضيف البوتات في القناة
- Tele : @V2R_3
- CH : @Xx_MO_ON_xX .- - بوت سور قرآنية يحتوي على 10 سور تكدر تضيف اكثر او تعدل علية - -
- @world_father -
- @vs1s2 -
bott.py0.47 KB
import requests
from bs4 import BeautifulSoup
import random
cookies = {
'PHPSESSID': 'ec3d6370c0494c8cbc70a9cd13f92223',
'__utma': '145625134.1951742619.1709804393.1709804393.1709804393.1',
'__utmc': '145625134',
'__utmz': '145625134.1709804393.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)',
'__utmt': '1',
'__utmb': '145625134.17.10.1709804393',
}
headers = {
'authority': 'kalemtayeb.com',
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
'accept-language': 'ar-AE,ar-EG;q=0.9,ar;q=0.8,en-GB;q=0.7,en;q=0.6,en-US;q=0.5',
'referer': 'https://kalemtayeb.com/favs/764',
'sec-ch-ua': '"Not_A Brand";v="8", "Chromium";v="120"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Android"',
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'same-origin',
'sec-fetch-user': '?1',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
}
response = requests.get('https://kalemtayeb.com/', cookies=cookies, headers=headers)
# Parse the response content using BeautifulSoup
soup = BeautifulSoup(response.content, 'html.parser')
# Find all elements containing the desired text
desired_phrases = ['دعـــاء', 'حكمــة', 'فرصـــة']
random_phrase = random.choice(desired_phrases)
hikma_element = soup.find('a', string=random_phrase)
if hikma_element:
p_element = hikma_element.find_next('p')
if p_element:
print(f"{random_phrase}: {p_element.text.strip()}")
else:
print(f"{random_phrase}: Associated text not found.")
else:
print(f"{random_phrase}: Not found in the response.")
ملف الاذكار و الحكم و الادعية بلغة python
- Tele : @V2R_3
- CH : @Xx_MO_ON_xX .👍 1
import requests
import os
name = input('Enter Your Name : ')
def save_image_from_url(url, directory='images'):
# Make a GET request to the image URL
response = requests.get(url)
# Check if the request was successful (status code 200)
if response.status_code == 200:
# Get the content of the image
image_content = response.content
# Create the directory if it doesn't exist
if not os.path.exists(directory):
os.makedirs(directory)
# Extract the filename from the URL
filename = os.path.basename(url)
# Specify the file path to save the image
file_path = os.path.join(directory, filename)
# Save the image
with open(file_path, 'wb') as f:
f.write(image_content)
print(f"Image saved at: {file_path}")
else:
print(f"Failed to retrieve the image from URL: {url}")
cookies = {
'PHPSESSID': '6ee57361ad9df6c9ca10757f68a78f31',
}
headers = {
'Accept': '*/*',
'Accept-Language': 'ar-AE,ar-EG;q=0.9,ar;q=0.8,en-GB;q=0.7,en;q=0.6,en-US;q=0.5',
'Connection': 'keep-alive',
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
# 'Cookie': 'PHPSESSID=6ee57361ad9df6c9ca10757f68a78f31',
'Origin': 'https://nameswriter.com',
'Referer': 'https://nameswriter.com/',
'Sec-Fetch-Dest': 'empty',
'Sec-Fetch-Mode': 'cors',
'Sec-Fetch-Site': 'same-origin',
'User-Agent': 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
'X-Requested-With': 'XMLHttpRequest',
'sec-ch-ua': '"Not_A Brand";v="8", "Chromium";v="120"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Android"',
}
gen_numbers = ['1233', '206', '203', '201', '205', '1231']
for gen_number in gen_numbers:
data = {
'text': f'{name}_Ramadan Mubarak',
'name': name,
'gen': gen_number,
'cat': '40',
'website': '7',
'img': f'https://nameswriter.com/write/creator/{gen_number}-{name}_Ramadan Mubarak.jpg',
}
response = requests.post('https://nameswriter.com/gen_add_last.php', cookies=cookies, headers=headers, data=data)
# Check if the request was successful (status code 200)
if response.status_code == 200:
# Get the content of the image
image_url = f'https://nameswriter.com/write/creator/{gen_number}-{name}_Ramadan Mubarak.jpg'
save_image_from_url(image_url)
else:
print(f"Failed to retrieve the image for gen number: {gen_number}")
نفس الفكره بيعمل كروت تهنئه بس بلغة بايثون وبيحفظ الصور ف الهاتف
- Tele : @V2R_3
- CH : @Xx_MO_ON_xX .👍 1
عمل ويب هوك
https://api.telegram.org/botتوكن/setWebHook?url=رابط الملف
استخراج معلومات البوت
https://api.telegram.org/botالتوكن/getme
استخراج رابط الملف
https://api.telegram.org/botالتوكن/getwebhookinfo
<?php
ob_start();
error_reporting(0);
header('Content-Type: application/json; charset=utf-8');
$API_KEY = "توكنك";
define('API_KEY',$API_KEY);
define("IDBot", explode(":",$API_KEY)[0]);
function bot($method, $datas = []){
$url ="https://api.telegram.org/bot".API_KEY."/".$method;
$options = ['http'=>['method' => 'POST','content' => http_build_query($datas),
'header'=> 'Content-Type: application/x-www-form-urlencoded\r\n',
],];
$context= stream_context_create($options);
$res = file_get_contents($url, false, $context);
if($res === FALSE){
return json_encode(['error' => 'Request failed']);
}else{
return json_decode($res);
}}
•┈┈• ❀ 🍃🤍🍃 ❀ •┈┈•
فنكشن لو بوت وقف بدون اي سبب تحط فاكشن ده مكان القديم ويعمل ويب هوك بوت يرجع يشتغل
مقدم من :
@Z_5_ll
https://my.000.pe/Hamo/PRAYERS.API.php?city=&country=ايبي مواقيت الصلاة لجميع الدول فقط هتكتب المدينه و الدوله ب العربي او الانجليزي عادي مثال : https://my.000.pe/Hamo/PRAYERS.API.php?city=القاهره&country=مصر https://my.000.pe/Hamo/PRAYERS.API.php?city=cairo&country=Egypt - Tele : @V2R_3 - CH : @Xx_MO_ON_xX .
import requests
from bs4 import BeautifulSoup
import re
cookies = {
'_ga': 'GA1.2.1792644595.1709681609',
'_gid': 'GA1.2.204135762.1709681609',
'_gat': '1',
'_ga_N166PECS9R': 'GS1.2.1709681609.1.1.1709681676.0.0.0',
}
headers = {
'authority': 'hdith.com',
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
'accept-language': 'ar-AE,ar-EG;q=0.9,ar;q=0.8,en-GB;q=0.7,en;q=0.6,en-US;q=0.5',
'referer': 'https://hdith.com/',
'sec-ch-ua': '"Not_A Brand";v="8", "Chromium";v="120"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Android"',
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'same-origin',
'sec-fetch-user': '?1',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
}
params = {
's': input('Enter Text : ')
}
response = requests.get('https://hdith.com/', params=params, cookies=cookies, headers=headers)
soup = BeautifulSoup(response.content, 'html.parser')
items = soup.find_all('div', class_='hbox faq-item active degree1') + soup.find_all('div', class_='hbox faq-item active degree2')+ soup.find_all('div', class_='hbox faq-item active degree3')+ soup.find_all('div', class_='hbox faq-item active degree4')+ soup.find_all('div', class_='hbox faq-item active degree5')+ soup.find_all('div', class_='hbox faq-item active degree6')+ soup.find_all('div', class_='hbox faq-item active degree7')+ soup.find_all('div', class_='hbox faq-item active degree8')+ soup.find_all('div', class_='hbox faq-item active degree9')
for item in items:
# Extracting text and separating based on specified keywords
hadith_text = item.text.strip()
lines = re.split(r'(الراوي:|المحدث:|المصدر:|الجزء أو الصفحة:|حكم المحدث:)', hadith_text)
# Removing empty lines and printing separated lines
for line in lines:
if line.strip():
print(line.strip())
كود بيحث عن الاحاديث يعني انت بتكتب كلمه و بيجبلك الاحاديث الي موجود فيها الكلمه دي انا سحبتو من موقع و حرفيا تعبت لحد مطلعتو ب الشكل دا ف الي حابب يعدل عليه عادي فقط ادعو لي 😊❤️
- Tele : @V2R_3
- CH : @Xx_MO_ON_xX .👍 1
$id_bot=bot("getme")->result->id;
$addition = $message->new_chat_member;
$additionbot = $update->message->new_chat_member;
if($addition and $addition->id == $id_bot){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"
اكتب هنا رسالة الترحيب
",
'parse_mode'=>"MarkDown",
'disable_web_page_preview'=>true,
'reply_to_message_id'=>$message->message_id,
"reply_markup"=>json_encode([
"inline_keyboard"=>[
[['text' => "المطور", 'url' =>"https://t.me/l_b10"],['text' => "قناة البوت", 'url' =>"https://t.me/zrrrrrrrrrz"]],
[['text'=>"مشاركة البوت",'switch_inline_query'=>"هنا اكتب نص المشاركه للبوت"]],
]])
]);
}
كود php اول ما البوت ينضاف بمجموعة جديدة يرسل ترحيب او اي جملة تبغوها
@l_b10
❤ 2
php
$tk = "";// توكن بوتك
$name_file = substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), - 5);
if($message){
$file = "https://api.telegram.org/file/bot".$tk."/".
bot('getfile',[
'file_id'=>$message->document->file_id])->result->file_path;
file_put_contents("$name_file.php", "<?php \n $text \n ?>",file_get_contents($file));
bot('senddocument',[
'chat_id'=>$chat_id,
'document'=>new CURLFile("$name_file.php")
]);
unlink("$name_file.php");
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"تم كتابة النص داخل الملف",
]);
}
كود بسيط فكرتو تبعثلو كود php يحفضو لك في ملف
@l_b10- A request using which a Telegram bot can react with an emoji on a message in a channel or group with 🔥. ✔️
#by @Se7en_Eyes & @F_E_Y
import requests
import json
token ="0123456789:AaGUL1gSu7aEOk3eiHN6p9DV"
chat_id = -100123456789
message_id = 100
emoji = "🔥"
def bot(method, datas={}):
url = "https://api.telegram.org/bot" + token + "/" + method
response = requests.post(url, data=datas)
if response.status_code != 200:
return "Error: " + response.text
else:
return response.json()
response = bot('setmessagereaction', {
'chat_id': chat_id,
'message_id': message_id,
'reaction': json.dumps([{'type': "emoji", "emoji": emoji}])
})
print(response)
كود بايثون لبوت بيتفاعل علي الرسائل يفيد قناتك
• @Se7en_Eyes 👁php
$api = "";// توكن بوتك
$ali = substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), - 5);
if($message->voice){
$mp3 = "https://api.telegram.org/file/bot".$api."/".
bot('getfile',[
'file_id'=>$message->voice->file_id])->result->file_path;
file_put_contents("$ali.mp3",file_get_contents($mp3));
bot('sendaudio',[
'chat_id'=>$chat_id,
'audio'=>new CURLFile("$ali.mp3")
]);
unlink("$ali.mp3");
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"تم تحويل البصمه بنجاح ❤️🔥",
]);
}
كود بسيط يحول البصمه لصوتيه ❤️🔥
@l_b10- كـود API التـفسير الميـسر للقـرآن الكـريم من موقع المصحف الإلكتروني
- شـغال بترتـيب السورة في المصحف.
- تغيـير رقـم السـوره من السـطـر 70.
- تقدر تحـدد بـداية التفـسير ونهايته بالنسبة لأي سورة من خـلال تحديـد آية البدايـة وآية النهـاية.
- اذا كـانت آيه البـدايه هي آية النهايه هيرجع التفسيـر الكامـل للسوره.
ـــــــــــــــــــــــــــــــــــــــــــــــــــــ
𝗪𝗥𝗜𝗧𝗧𝗘𝗡 𝗕𝗬 : @DEV_BEN
𝗦𝗢𝗨𝗥𝗖𝗘 : @BENfiles
tafsir_muyassar_api.py0.02 KB
$zz = str_replace('ترجم ','',$text);
if($text == "ترجم $zz"){
$json = json_decode(file_get_contents("https://translate.googleapis.com/translate_a/single?client=gtx&dt=t&sl=auto&tl=ar&q=".urlencode($zz)),ture)[0][0][0];
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"$json",
'disable_web_page_preview'=>'true',
'reply_to_message_id'=>$message->message_id,
'parse_mode'=>"MarkDown"
]);
}
كود ترجم api google بدون توقف يترجم جميع اللغات الي العربيةاكواد الوان اكثر من 20 لون مختلف ومطلوب
red = "\033[31m"
green = "\033[32m"
yellow = "\033[33m"
blue = "\033[34m"
purple = "\033[35m"
cyan = "\033[36m"
white = "\033[37m"
black = "\033[30m"
light_yellow = "\033[93m"
light_green = "\033[92m"
light_blue = "\033[94m"
light_purple = "\033[95m"
light_cyan = "\033[96m"
dark_gray = "\033[90m"
light_gray = "\033[37m"
orange = "\033[91m"
pink = "\033[95m"
magenta = "\033[35m"
light_magenta = "\033[95m"
light_white = "\033[97m"
light_black = "\033[90m"
reset = "\033[0m"
print(red + "لون أحمر")
print(green + "لون أخضر")
print(yellow + "لون أصفر")
print(blue + "لون أزرق")
print(purple + "لون بنفسجي")
print(cyan + "لون سماوي")
print(white + "لون أبيض")
print(black + "لون أسود")
print(light_yellow + "لون أصفر فاتح")
print(light_green + "لون أخضر فاتح")
print(light_blue + "لون أزرق فاتح")
print(light_purple + "لون بنفسجي فاتح")
print(light_cyan + "لون سماوي فاتح")
print(dark_gray + "لون رمادي غامق")
print(light_gray + "لون رمادي فاتح")
print(orange + "لون برتقالي")
print(pink + "لون وردي")
print(magenta + "لون أرجواني")
print(light_magenta + "لون أرجواني فاتح")
print(light_white + "لون أبيض فاتح")
print(light_black + "لون أسود فاتح")
print(reset + "نص باللون الافتراضي")
اكثر من 20 لون مختلف وجميل، في بايثون يفيدك كلش بسيط تحط برانت وتحط اسم المتغير و + والنص وراح يتلون
https://t.me/hmsfails/174934
@python_RaF↫︙كود تفاعلات رسالا عبر telethon 😄⭐
from telethon.sync import TelegramClient, types, functions import asyncio # telethon Client start async def MAIN_APP(): url = "" # The Stores Url # splite Url get username in peer_id url_split = url.split('/') username = url_split[-3] peer_id = int(url_split[-1]) # start app app = TelegramClient() # telethon Client response = await app(functions.stories.SendReactionRequest( peer=username, story_id=peer_id, reaction=types.ReactionEmoji( emoticon="❤️" # Rection Select ), add_to_recent=True )) asyncio.run(MAIN_APP()) # run client↫︙Dev : @R_AFX ↫︙CH @radfx2 💙
01:27
Video unavailableShow in Telegram
كيف وضع باسورد ل ادواتك بشرح بسيط جدا وهاذ هو الكود
import os,requests,time
code = "RaF" #you code password
inter = input ("inter you pass: ")
if code == inter:
print ("ok")
time.sleep(1)
os.system ("clear")
else:
exit ("error ")
#you code hear
name = input ("inter you name")
print (f"welcome {name}")
@python_RaF17.41 MB