date.plugin
3.7 KB
تختار التاريخ من الاعدادات
وترد ع الرسالة (.تاريخ) حتتغير😳
وترد ع الرسالة (.تاريخ) حتتغير
Please open Telegram to view this post
VIEW IN TELEGRAM
LocalEdictor.plugin
10.6 KB
تزيف اقدميه يفيد الاحداث 🌟
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
all_in_one_formatter_v4.plugin
16.6 KB
بلوقني ( مسافه ~ اختصارات - رد بشكل اقتباس - تنسيق الخط - بكمنه - فاصلة)
بدون تشفير لحد يصرق👍
بدون تشفير لحد يصرق
Please open Telegram to view this post
VIEW IN TELEGRAM
ازرار ملونه للبوتات - بلاش
بوت استخراج ايدي الرمز المميز @V_JXBOT
def _start_buttons():
return [
[Button.inline("عنوان", "activate_source", style="success", icon=id)],
[
Button.url("عنوان", "https://xn--r1a.website/يوزر", style="primary", icon=id),
Button.url("عنوان", "https://xn--r1a.website/يوزر", style="danger", icon=id),
],
]
# icon = رمز الايموجي المميز
# style = لون الزر
# رمز الايموجي يظهر اذا كان مالك البوت مفعل اشتراك تيليجرام مميز
بوت استخراج ايدي الرمز المميز @V_JXBOT
import asyncio
from datetime import datetime
import pytz
from telethon import events
from telethon.tl.functions.account import UpdateProfileRequest
# ─── 10 أنماط لأرقام الساعة ───
CLOCK_STYLES = [
{"0": "٠", "1": "١", "2": "٢", "3": "٣", "4": "٤", "5": "٥", "6": "٦", "7": "٧", "8": "٨", "9": "٩"},
{"0": "𝟢", "1": "𝟣", "2": "𝟤", "3": "𝟥", "4": "𝟦", "5": "𝟧", "6": "𝟨", "7": "𝟩", "8": "𝟪", "9": "𝟫"},
{"0": "𝟬", "1": "𝟭", "2": "𝟮", "3": "𝟯", "4": "𝟰", "5": "𝟱", "6": "𝟲", "7": "𝟳", "8": "𝟴", "9": "𝟵"},
{"0": "⓿", "1": "❶", "2": "❷", "3": "❸", "4": "❹", "5": "❺", "6": "❻", "7": "❼", "8": "❽", "9": "❾"},
{"0": "⓪", "1": "①", "2": "②", "3": "③", "4": "④", "5": "⑤", "6": "⑥", "7": "⑦", "8": "⑧", "9": "⑨"},
{"0": "𝟶", "1": "𝟷", "2": "𝟸", "3": "𝟹", "4": "𝟺", "5": "𝟻", "6": "𝟼", "7": "𝟽", "8": "𝟾", "9": "𝟿"},
{"0": "𝟘", "1": "𝟙", "2": "𝟚", "3": "𝟛", "4": "𝟜", "5": "𝟝", "6": "𝟞", "7": "𝟟", "8": "𝟠", "9": "𝟡"},
{"0": "0", "1": "1", "2": "2", "3": "3", "4": "4", "5": "5", "6": "6", "7": "7", "8": "8", "9": "9"},
{"0": "𝔄", "1": "𝟙", "2": "𝟚", "3": "𝟛", "4": "𝟜", "5": "𝟝", "6": "𝟞", "7": "𝟟", "8": "𝟠", "9": "𝟡"},
{"0": "❶", "1": "𝟷", "2": "❷", "3": "𝟸", "4": "❸", "5": "𝟹", "6": "❹", "7": "𝟺", "8": "❺", "9": "𝟻"},
]
CLOCK_STATE = {"running": False, "style_index": 0, "task": None}
async def clock_engine(client):
original_name = None
iq_tz = pytz.timezone("Asia/Baghdad")
while CLOCK_STATE["running"]:
try:
me = await client.get_me()
if original_name is None:
original_name = me.first_name.split("|")[0].strip()
now = datetime.now(iq_tz)
time_str = now.strftime("%I:%M")
style = CLOCK_STYLES[CLOCK_STATE["style_index"]]
styled_time = "".join(style.get(c, c) for c in time_str)
new_name = f"{original_name} | {styled_time}"
if me.first_name != new_name:
await client(UpdateProfileRequest(first_name=new_name))
except Exception:
pass
await asyncio.sleep(10)
@client.on(events.NewMessage(outgoing=True))
async def clock_commands(event):
t = (event.text or "").strip().lower()
if t == ".وقتي":
if not CLOCK_STATE["running"]:
CLOCK_STATE["running"] = True
CLOCK_STATE["task"] = asyncio.create_task(clock_engine(client))
await event.edit("⏰ تم تشغيل الساعة بجانب الاسم (توقيت العراق)")
else:
await event.edit("⚠️ الساعة تعمل بالفعل!")
elif t == ".تعطيل وقتي":
CLOCK_STATE["running"] = False
if CLOCK_STATE["task"]:
CLOCK_STATE["task"].cancel()
CLOCK_STATE["task"] = None
await event.edit("🛑 تم تعطيل الساعة وإيقاف التحديث.")
elif t.startswith(".شكل"):
parts = t.split()
if len(parts) > 1 and parts[1].isdigit():
idx = int(parts[1]) - 1
if 0 <= idx < len(CLOCK_STYLES):
CLOCK_STATE["style_index"] = idx
await event.edit(f" تم تغيير نمط الساعة إلى الشكل رقم `{parts[1]}`")
else:
await event.edit(" اختر رقم شكل من 1 إلى 10.")
import asyncio
from telethon import events
from telethon.errors import FloodWaitError
BROADCAST_HISTORY = [] # [(chat_id, msg_id)] — سجل آخر إذاعة للإلغاء
@client.on(events.NewMessage(outgoing=True, pattern=r"^\.اذاعة (للكل|خاص)$"))
async def run_broadcast(event):
mode = event.pattern_match.group(1)
reply = await event.get_reply_message()
if not reply:
return await event.edit("ᯓ『 **❌ يجب الرد على الرسالة.** 』ᯓ")
await event.edit("ᯓ『جاري الإذاعة...』ᯓ")
BROADCAST_HISTORY.clear()
success_count = 0
try:
dialogs = await client.get_dialogs(limit=None)
for dialog in dialogs:
try:
should_send = False
if mode == "للكل" and (dialog.is_group or dialog.is_channel):
should_send = True
elif mode == "خاص" and dialog.is_user and not dialog.entity.bot:
should_send = True
if should_send:
sent = await client.forward_messages(dialog.id, reply)
if sent:
BROADCAST_HISTORY.append((dialog.id, sent.id))
success_count += 1
await asyncio.sleep(0.2)
except FloodWaitError as f:
await asyncio.sleep(f.seconds + 1)
except Exception:
continue
await event.respond(f"ᯓ『تمت الإذاعة لـ {success_count} وجهة.』ᯓ")
except Exception as e:
await event.respond(f"ᯓ『خطأ: {e}』ᯓ")
@client.on(events.NewMessage(outgoing=True, pattern=r"^\.الغاء الاذاعه$"))
async def cancel_last_broadcast(event):
if not BROADCAST_HISTORY:
return await event.edit("ᯓ『 **⚠️ لا يوجد سجل إذاعة.** 』ᯓ")
await event.edit(f"ᯓ『جاري حذف {len(BROADCAST_HISTORY)} رسالة...』ᯓ")
deleted = 0
for chat_id_b, msg_id in BROADCAST_HISTORY:
try:
await client.delete_messages(chat_id_b, [msg_id], revoke=True)
deleted += 1
await asyncio.sleep(0.1)
except Exception:
pass
BROADCAST_HISTORY.clear()
await event.respond(f"ᯓ『 **✅ تم إلغاء الإذاعة وحذف {deleted} رسالة** 』ᯓ")
سِـٌۅٛيـتـُِي اެݪـ شِـرَيـُفِ𖣂︎
import asyncio from telethon import events from telethon.errors import FloodWaitError BROADCAST_HISTORY = [] # [(chat_id, msg_id)] — سجل آخر إذاعة للإلغاء @client.on(events.NewMessage(outgoing=True, pattern=r"^\.اذاعة (للكل|خاص)$")) async def run_broadcast(event):…
كود اذاعة لـ10مليون بدون حظر او فلود
from telethon import events
import os
import asyncio
AUTO_SAVE_SELF_MEDIA = False
# حاله التشغيل من هنا
@client.on(events.NewMessage(outgoing=True))
async def self_media_toggle(event):
global AUTO_SAVE_SELF_MEDIA
text = (event.text or "").strip()
if text in (".تفعيل الذاتية", ".تفعيل الذاتيه"):
AUTO_SAVE_SELF_MEDIA = True
await event.edit("✅ تم تفعيل الحفظ التلقائي للصور الذاتية والمقيدة إلى الرسائل المحفوظة.")
elif text in (".تعطيل الذاتية", ".تعطيل الذاتيه"):
AUTO_SAVE_SELF_MEDIA = False
await event.edit("🛑 تم تعطيل حفظ الصور الذاتية.")
@client.on(events.NewMessage(incoming=True))
async def self_destruct_media_saver(event):
if not AUTO_SAVE_SELF_MEDIA:
return
if event.is_private and (event.photo or event.video):
# الوسائط عندها عداد تدمير (ttl_seconds) أو فترة عرض (ttl_period)
if getattr(event.media, "ttl_seconds", None) or getattr(event, "ttl_period", None):
try:
file_path = await event.download_media()
sender = await event.get_sender()
sender_name = getattr(sender, "first_name", "مستخدم")
await client.send_file(
"me", file_path,
caption=f"📸 **وسائط ذاتية مأخوذة من:** {sender_name} (`{event.sender_id}`)"
)
if file_path and os.path.exists(file_path):
os.remove(file_path) # حذف الملف المؤقت فوراً
except Exception:
pass
# مانع التفليش — يطرد هواي بوقت قصير ينزل
from telethon import events, TelegramClient
from telethon.tl.functions.channels import EditAdminRequest
from telethon.tl.types import ChatAdminRights
import time, json, os
FLUSH_LIMIT = 3 # حد الطرد
FLUSH_WINDOW = 20 # المهلة بالثواني
FILE = "anti_flush.json" # ملف الحفظ
SAFE = {OWNER_ID, BOT_ID}
AF_ON = set(json.load(open(FILE))) if os.path.exists(FILE) else set() # المفعل
ACTORS = {} # {(chat, admin): [times]}
def save():
json.dump(list(AF_ON), open(FILE, "w"))
@client.on(events.NewMessage(pattern=r"\.تفعيل الحماية"))
async def on_cmd(e):
if e.sender_id not in SAFE: return
AF_ON.add(e.chat_id); save()
await e.reply("✅ التفليش شغال — {0} طرد/{1} ثانية = نزول".format(FLUSH_LIMIT, FLUSH_WINDOW))
@client.on(events.NewMessage(pattern=r"\.تعطيل الحماية"))
async def off_cmd(e):
if e.sender_id not in SAFE: return
AF_ON.discard(e.chat_id); save()
await e.reply("❎ التفليش مسدود")
@client.on(events.ChatAction(func=lambda e: e.user_kicked or e.user_banned))
async def watcher(e):
chat = e.chat_id
if chat not in AF_ON: return
actor = getattr(e.action_message.from_id, "user_id", None) # منو اللي طرده
if not actor or actor in SAFE: return
now, key = time.time(), (chat, actor)
arr = ACTORS.setdefault(key, [])
arr.append(now)
ACTORS[key] = [t for t in arr if now - t <= FLUSH_WINDOW] # حدث جديد
if len(ACTORS[key]) >= FLUSH_LIMIT: # وصل للحد = المطلوب
ACTORS.pop(key)
try:
await client(EditAdminRequest(chat, actor, ChatAdminRights())) # نزول كامل
await client.send_message(
chat,
f"🚨 تفليش!\nتنزل [{actor}](tg://user?id={actor}) — طرد {FLUSH_LIMIT}+ خلال {FLUSH_WINDOW} ث")
except Exception as ex:
await client.send_message(chat, f"⚠️ ماگدرت انزّله — نقص صلاحيات\n`{ex}`")
# تكرير الصوره افتار — رد على صورة واكتب: .تكرير 5
from telethon import events
from telethon.tl.functions.photos import UploadProfilePhotoRequest
from telethon.errors import FloodWaitError
import asyncio, os
@client.on(events.NewMessage(pattern=r"\.تكرير (\d+)"))
async def avatar_repeat(e):
if e.sender_id not in OWNER_IDS: return # بس المالك
m = await e.get_reply_message()
is_photo = m and (m.photo or (m.document and (m.document.mime_type or "").startswith("image/")))
if not is_photo:
return await e.reply("⚠️ رد على **صورة** حتى أتكررها لك افتار")
n = min(max(int(e.pattern_match.group(1)), 1), 50) # حد أعلى 50
os.makedirs("./downloads", exist_ok=True)
path = None
try:
path = await client.download_media(m, file="./downloads/av_repeat")
if not path or not os.path.exists(path):
return await e.reply("⚠️ ماگدرت ارفع الصورة")
status = await e.reply(f" شغّال — يتم تطبيق التكرار **{n}** بالعدد")
ok = failed = 0
for _ in range(n):
try:
inp = await client.upload_file(path) # رفع جديد كل مرة
await client(UploadProfilePhotoRequest(file=inp))
ok += 1
except FloodWaitError as fw:
await asyncio.sleep(fw.seconds + 2)
except Exception:
failed += 1
await asyncio.sleep(1.5) # استراحة حماية فلود
await status.edit(f"✅ خلصت — صارت افتار **{ok}/{n}** مرة" +
(f" (فشل {failed})" if failed else ""))
finally:
try:
if path and os.path.exists(path): os.remove(path)
except Exception:
pass
التلي وره الحجب بعد ما يدز كود علرقم العراقي ( 964 + ) 🇮🇶 بسبب تفعيل VPN او بروكسي حافظ على جلسة سورسك اذا رقمك عراقي 😎
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1
