بايثون | 𝗖𝗼𝗱𝗲.𝗽𝘆
419 subscribers
47 photos
15 videos
65 files
45 links
• أول فريق مصري متخصص في تطوير بايثون Python
• القناة #Code الرسميـة الرائدة في تـعليم البرمجة عربيًا
• جميع الحقوق و النشر محفوظة: ©️ VEGA ₂₀₁₅
• مطور ومُنشئ المحتوى:
@TopVeGa
@DevVeGa
Download Telegram
main.py
24.7 KB
ملف بوت روليت سحب عشوائي

ملف هدية من فيجا

انت تطلب واتمني وفيجا يقولك اتهني


• أول فريق مصري متخصص في تطوير بايثون Python
• القناة #Code الرسميـة الرائدة في تـعليم البرمجة عربيًا
• جميع الحقوق و النشر محفوظة: ©️ VEGA 2015
• مطور ومُنشئ المحتوى:
@TopVeGa
@DevVeGa
بالنسبة للناس اللي طالبة بوت الإذاعة م هينفع انزلهولكم للاسف
ولاكن هديك فكرته
ملفات التخزين والروابط المباشرة
المكاتب المستخدمة
1- pyrogram
2- subprocess
لتشغيل عمليات البث المباشر عبر ffmpeg
3- threading
لإدارة البث المباشر والاذكار



وهذه المكاتب اللتي يعمل بها البوت

• أول فريق مصري متخصص في تطوير بايثون Python
• القناة #Code الرسميـة الرائدة في تـعليم البرمجة عربيًا
• جميع الحقوق و النشر محفوظة: ©️ VEGA 2015
• مطور ومُنشئ المحتوى:
@TopVeGa
@DevVeGa
كود تحكم بي vps


import os
import subprocess
from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton


WARNING = """
**تحذير أمني شديد**
هذا الكود يعطي صلاحيات غير محدودة للتحكم في السيرفر!
استخدمه على مسؤوليتك الخاصة فقط.
"""

@Client.on_message(filters.command("vpsتحكم"))
async def vpscontrol(client, message):
await message.reply(WARNING, reply_markup=InlineKeyboardMarkup([
[InlineKeyboardButton("إيقاف خدمة", callback_data="stop_service")],
[InlineKeyboardButton("إعادة تشغيل", callback_data="reboot")],
[InlineKeyboardButton("عرض الموارد", callback_data="stats")],
[InlineKeyboardButton(" إغلاق الشاشات", callback_data="kill_screens")]
]))

@Client.on_callback_query()
async def actionsvps(client, callback):
user_id = callback.from_user.id
try:
if callback.data == "stop_service":
os.system("systemctl stop nginx")
await callback.message.edit_text(" تم إيقاف الخدمة")

elif callback.data == "reboot":
await callback.message.edit_text(" سيتم إعادة التشغيل خلال 5 ثوان...")
os.system("sleep 5 && reboot &")
elif callback.data == "stats":
ram = subprocess.getoutput("free -h")
disk = subprocess.getoutput("df -h")
await callback.message.edit_text(f" الموارد:\nRAM:\n{ram}\n\nDisk:\n{disk}")
elif callback.data == "kill_screens":
os.system("pkill screen")
await callback.message.edit_text("تم إغلاق جميع الشاشات")
except Exception as e:
await callback.message.edit_text(f" خطأ: {str(e)}")

• أول فريق مصري متخصص في تطوير بايثون Python
• القناة #Code الرسميـة الرائدة في تـعليم البرمجة عربيًا
• جميع الحقوق و النشر محفوظة: ©️ VEGA 2015
• مطور ومُنشئ المحتوى:
@TopVeGa
@DevVeGa
3
كود ايدي بصوره مشوشه


python

iddof = []

@Client.on_message(filters.command(["قفل الايدي", "تعطيل الايدي"], ""), group=73)
async def iddlock(client, message):
bot_username = client.me.username
OWNER_ID = await get_dev(bot_username)

if await johned(client, message):
return

chek = await client.get_chat_member(message.chat.id, message.from_user.id)
if chek.status in [ChatMemberStatus.OWNER, ChatMemberStatus.ADMINISTRATOR] or message.from_user.username in wenru or message.from_user.username in caes:
if message.chat.id in iddof:
return await message.reply_text("تم معطل من قبل🔒")
iddof.append(message.chat.id)
return await message.reply_text("تم تعطيل الايدي بنجاح 🔒")
else:
return await message.reply_text(f"عذراً عزيزي {message.from_user.mention}\nهذا الأمر لا يخصك")

@Client.on_message(filters.command(["فتح الايدي", "تفعيل الايدي"], ""), group=703)
async def iddopen(client, message):
bot_username = client.me.username
OWNER_ID = await get_dev(bot_username)

if await johned(client, message):
return

chek = await client.get_chat_member(message.chat.id, message.from_user.id)
if chek.status in [ChatMemberStatus.OWNER, ChatMemberStatus.ADMINISTRATOR] or message.from_user.username in wenru or message.from_user.username in caes:
if message.chat.id not in iddof:
return await message.reply_text("الايدي مفعل من قبل ")
iddof.remove(message.chat.id)
return await message.reply_text("تم فتح الايدي بنجاح 🔓")
else:
return await message.reply_text(f"عذراً عزيزي {message.from_user.mention}\nهذا الأمر لا يخصك")

@Client.on_message(filters.command(["ايدي","الايدي","ا"], ""), group=713)
async def iddd(client, message):
bot_username = client.me.username
OWNER_ID = await get_dev(bot_username)

if await johned(client, message):
return

if message.chat.id in iddof:
return await message.reply_text(f"عذراً عزيزي [{message.from_user.mention}] \nالايدي معطل اطلب من الادمنيه تفعيله ")

usr = await client.get_chat(message.from_user.id)
bio = usr.bio if usr and usr.bio else 'لا يوجد'
keyboard = InlineKeyboardMarkup(
[[InlineKeyboardButton(usr.first_name, url=f"https://t.me/{message.from_user.username}")]]
)

if message.from_user.photo:
photo = await client.download_media(usr.photo.big_file_id)
await message.reply_photo(
photo=photo,
caption=f"""╭⎋¦ ᚐ𝙽𝙰𝙼𝙴 : {message.from_user.mention}
╰⊚ᚐ ᴜsᴇʀ : @{message.from_user.username}
╭⎋ ɪᴅ : {message.from_user.id}
╰⊚ᚐ ʙɪᴏ : {bio}
♥️ ¦ 𝙲𝙷𝙰𝚃 : {message.chat.title}
♻️ ¦ 𝙸𝙳.𝙶𝚁𝙾𝚄𝙿 : {message.chat.id}""",
reply_markup=keyboard,
has_spoiler=True
)
else:
await message.reply_text(
text=f"""╭⎋¦ᚐ𝙽𝙰𝙼𝙴 : {message.from_user.mention}
╰⊚ᚐᴜsᴇʀᚐ : @{message.from_user.username}
╭⎋ɪᴅᚐ: {message.from_user.id}
╰⊚ᚐʙɪᴏᚐ: {bio}
¦𝙲𝙷𝙰𝚃: {message.chat.title}
♻️ ¦𝙸𝙳.𝙶𝚁𝙾𝚄𝙿 : {message.chat.id}""",
reply_markup=keyboard
)

`





• أول فريق مصري متخصص في تطوير بايثون Python
• القناة #Code الرسميـة الرائدة في تـعليم البرمجة عربيًا
• جميع الحقوق و النشر محفوظة: ©️ VEGA 2015
• مطور ومُنشئ المحتوى:
@TopVeGa
@DevVeGa
❤‍🔥3👍3🏆3🆒2
main.py
33 KB
بدون مقدمات جرب بنفسك
@QK_lBOT



• أول فريق مصري متخصص في تطوير بايثون Python
• القناة #Code الرسميـة الرائدة في تـعليم البرمجة عربيًا
• جميع الحقوق و النشر محفوظة: ©️ VEGA 2015
• مطور ومُنشئ المحتوى:
@TopVeGa
@DevVeGa
🆒3👍2🏆2❤‍🔥11
bot.py
25.6 KB
بوت تحميل جميع المنصات


• أول فريق مصري متخصص في تطوير بايثون Python
• القناة #Code الرسميـة الرائدة في تـعليم البرمجة عربيًا
• جميع الحقوق و النشر محفوظة: ©️ VEGA 2015
• مطور ومُنشئ المحتوى:
@TopVeGa
@DevVeGa
👍1🏆1🆒1
MT VEGA_2.14.5.apk
26.3 MB
نسخة Mt معدلة تم اضافة مميزات تستحق استخدامها جرب بنفسك



• أول فريق مصري متخصص في تطوير بايثون Python
• القناة #Code الرسميـة الرائدة في تـعليم البرمجة عربيًا
• جميع الحقوق و النشر محفوظة: ©️ VEGA ₂₀₁₅
• مطور ومُنشئ المحتوى:
@TopVeGa
@DevVeGa
3❤‍🔥1
VGram_11.14.1.apk
59 MB
VGram_11.14.1.apk

الاصدار الجديد من التلجرام معدل


• أول فريق مصري متخصص في تطوير بايثون Python
• القناة #Code الرسميـة الرائدة في تـعليم البرمجة عربيًا
• جميع الحقوق و النشر محفوظة: ©️ VEGA ₂₀₁₅
• مطور ومُنشئ المحتوى:
@TopVeGa
@DevVeGa
👍1🏆1
تم السحب برعاية فوكس.zip
25.9 KB
ملف نقل أعضاء ممنوعات مسحوب ع شان فكر يندب تاني 😂😂


• أول فريق مصري متخصص في تطوير بايثون Python
• القناة #Code الرسميـة الرائدة في تـعليم البرمجة عربيًا
• جميع الحقوق و النشر محفوظة: ©️ VEGA ₂₀₁₅
• مطور ومُنشئ المحتوى:
@TopVeGa
@DevVeGa
كود تقويم يظهر نفس الصوره هكذا


import os
from datetime import datetime, timedelta
import pytz
from PIL import Image, ImageDraw, ImageFont
from pyrogram import Client, filters

def topvega_calendar_image():
cairo_tz = pytz.timezone('Africa/Cairo')
now = datetime.now(cairo_tz)
img_width, img_height = 600, 800
img = Image.new('RGB', (img_width, img_height), color='white')
draw = ImageDraw.Draw(img)
try:
title_font = ImageFont.truetype("arial.ttf", 24)
day_font = ImageFont.truetype("arial.ttf", 18)
date_font = ImageFont.truetype("arial.ttf", 16)
footer_font = ImageFont.truetype("arial.ttf", 14)
except:
title_font = ImageFont.load_default()
day_font = ImageFont.load_default()
date_font = ImageFont.load_default()
footer_font = ImageFont.load_default()
title = "# 2025/9"
draw.text((50, 30), title, fill="black", font=title_font)

days = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
day_width = 80
start_x = 10
for i, day in enumerate(days):
x = start_x + i * day_width
draw.text((x, 70), day, fill="black", font=day_font)
dates = [
[1, 2, 3, 4, 5, 6, None],
[7, 8, 9, 10, 11, 12, 13],
[14, 15, 16, 17, 18, 19, 20],
[21, 22, 23, 24, 25, 26, 27],
[28, 29, 30, None, None, None, None]
]
start_y = 100
cell_width = 80
cell_height = 60
current_day = now.day
for row_idx, row in enumerate(dates):
for col_idx, date in enumerate(row):
if date is not None:
x = start_x + col_idx * cell_width + cell_width // 2
y = start_y + row_idx * cell_height + cell_height // 2
if date == current_day:
circle_radius = 20
draw.ellipse([x - circle_radius, y - circle_radius,
x + circle_radius, y + circle_radius],
outline="red", width=2)
draw.text((x, y), str(date), fill="black", font=date_font, anchor="mm")
draw.line([(10, 90), (img_width - 10, 90)], fill="black", width=1)
footer_text = "No events today"
draw.text((img_width // 2, img_height - 50), footer_text, fill="black", font=footer_font, anchor="mm")
date_str = now.strftime("%Y/%m/%d")
time_str = now.strftime("%I:%M %p")
datetime_text = f"تاريخ: {date_str} - وقت: {time_str} (توقيت مصر)"
draw.text((img_width // 2, img_height - 20), datetime_text, fill="black", font=footer_font, anchor="mm")
filename = f"images/calendar_{now.strftime('%Y%m%d_%H%M%S')}.png"
img.save(filename)
return filename

if not os.path.exists("images"):
os.makedirs("images")

@Client.on_message(filters.command("تاريخ",""))
async def sdate(client, message):
try:
image_path = topvega_calendar_image()
await message.reply_photo(
photo=image_path,
caption="📅 التقويم الحالي مع تحديد تاريخ اليوم"
)
os.remove(image_path)
except Exception as e:
await message.reply_text(f"حدث خطأ: {str(e)}")



• أول فريق مصري متخصص في تطوير بايثون Python
• القناة #Code الرسميـة الرائدة في تـعليم البرمجة عربيًا
• جميع الحقوق و النشر محفوظة: ©️ VEGA ₂₀₁₅
• مطور ومُنشئ المحتوى:
@TopVeGa
@DevVeGa
❤‍🔥32🏆1🆒1
بوت المسابقات.zip
5.1 KB
بوت مسابقات كامل هتعجبك


• أول فريق مصري متخصص في تطوير بايثون Python  


• القناة #Code الرسميـة الرائدة في تـعليم البرمجة عربيًا


• جميع الحقوق و النشر محفوظة:  ©️ VEGA 2015 


• مطور ومُنشئ المحتوى: 


@TopVeGa


@DevVeGa
5❤‍🔥2🏆2