Python Solve Problems | python tools | ملفات php | بوتات php | كورس python | ملفات python | بوتات python | حل مشاكل بايثون
712 subscribers
17 photos
54 videos
80 files
30 links
القناة ليست فُندق لتغادر حينما تسوء الخدمة
𝐈𝐓 𝐂𝐎𝐍𝐓𝐀𝐈𝐍𝐒𓂃𓂃 python or php
ᴏᴡɴᴇʀ 𓂃 @N0040
ᴏᴡɴᴇʀ 𓂃 @

—–––––––––––—
Download Telegram
import marshal,os

filemame = input("Enter Your File Name : \n")
outputname = input("Enter name to save the encoded file with : \n")

try:
open(filemame,"r")
except FileNotFoundError:
print("Error , The file must be with the tool in the same folder .")

with open(filemame,"r") as doc:
dc = doc.read()

com = compile(dc , "Encode" , "exec" )

m = marshal.dumps(com)

new = f'import marshal\nexec(marshal.loads({m}))'

with open(outputname , "w+") as w:
w.write(new)

os.system("clear")

print("Done encoded ( {} ) and fioe name is ( {} ) ".format(filemame,outputname))



أداه تشفير مارشال √
dev : @l3I3Il √
👍3
import time

myTime = time.ctime()
#print(myTime)


myTime2 = time.asctime()
#print(myTime2)

#================

myTime = time.localtime()
resultTime = time.strftime("%d/%m/%Y, %H:%M:%S",myTime)
#print(resultTime)

#==========Sleep function=====

beforeSleep = ("This is the first sentence",resultTime)
print(beforeSleep)

time.sleep(10)

afterSleep = ("This is the second statement",resultTime)
print(afterSleep)




مثال علي مكتبه الوقت
Mira-Music.zip
718.9 KB
سورس بوت ميرا
• sᴏᴜʀᴄᴇ ᴍɪʀᴀ

آخر نسخة ، Yukki

سورس هاد البوت : @NKQBOT
❤1
Forwarded from PyCrazy
Media download.py
1.6 KB
ْ

⚙ Supported sites:

🌐 😀 😀 🌐 🌐


➡️ API by : sufe🎃

✅ Programmed By :
Mohamed 🇪🇬

⭐️ libraries : Pyrogram
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4❤1
Forwarded from PyCrazy
@B3KKK--Telebot @all.py
2 KB
🎁 TagAll - pyTelegramBotApi

📄 Libraries:

— pip install pytelegrambotapi
— pip install asyncio
— pip install pyrogram

📎By : Dev Mohamed 🇪🇬
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1
Forwarded from PyCrazy
اله حاسبه.py
3.2 KB
🎁 Calculator - Pyrogram

📄 Libraries:

➡️ pip install pyrogram

📎By : Dev Mohamed 🇪🇬

🎛Help from : @Usi8BoT
🔗 بوت الذكاء الاصطناعي
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from PyCrazy
لوحه بايروجرام 1.py
59.3 KB
🎁 Keyboard .txt - Pyrogram

📄 Libraries:
➡️pip install pyrogram==2.0.56
➡️pip install pyromod==1.5
➡️pip install requests

📎By : Dev Mohamed 🇪🇬
Please open Telegram to view this post
VIEW IN TELEGRAM
لوحه بايروجرام 2.py
59.5 KB
🎁 Keyboard .json - Pyrogram

📄 Libraries:
➡️pip install pyrogram==2.0.56
➡️pip install pyromod==1.5
➡️pip install requests

📎By : Dev Mohamed 🇪🇬

كتابتي....
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1👍1
Forwarded from PyCrazy
PyCrazy
Photo
from pyrogram.types import Message
from pyrogram import filters, Client
from io import BytesIO

from aiohttp import ClientSession
import sys
import traceback
from functools import wraps

from pyrogram.errors.exceptions.forbidden_403 import ChatWriteForbidden

OWNER_ID = 5565674333

def split_limits(text):
if len(text) < 2048:
return [text]

lines = text.splitlines(True)
small_msg = ""
result = []
for line in lines:
if len(small_msg) + len(line) < 2048:
small_msg += line
else:
result.append(small_msg)
small_msg = line

result.append(small_msg)

return result

def capture_err(func):
@wraps(func)
async def capture(client, message, *args, **kwargs):
try:
return await func(client, message, *args, **kwargs)
except ChatWriteForbidden:
return
except Exception as err:
exc_type, exc_obj, exc_tb = sys.exc_info()
errors = traceback.format_exception(
exc_type,
value=exc_obj,
tb=exc_tb,
)
error_feedback = split_limits(
"ERROR | {} | {}\n\n
{}
\n\n
{}
\n".format(
0 if not message.from_user else message.from_user.id,
0 if not message.chat else message.chat.id,
message.text or message.caption,
"".join(errors),
),
)
for x in error_feedback:
await Client.send_message(OWNER_ID, x)
raise err

return capture


async def make_carbon(code):
url = "https://carbonara.solopov.dev/api/cook"
async with ClientSession().post(url, json={"code": code}) as resp:
image = BytesIO(await resp.read())
image.name = "carbon.png"
return image




@Client.on_message(filters.command("carbon"))
@capture_err
async def carbon_func(c:Client, message):
if message.reply_to_message:
if message.reply_to_message.text:
txt = message.reply_to_message.text
else:
return await message.reply_text("ʀᴇᴘʟʏ ᴛᴏ ᴀ ᴍᴇssᴀɢᴇ ᴏʀ ɢɪᴠᴇ sᴏᴍᴇ ᴛᴇxᴛ.")
else:
try:
txt = message.text.split(None, 1)[1]
except IndexError:
return await message.reply_text("ʀᴇᴘʟʏ ᴛᴏ ᴀ ᴍᴇssᴀɢᴇ ᴏʀ ɢɪᴠᴇ sᴏᴍᴇ ᴛᴇxᴛ.")
m = await message.reply_text("ɢᴇɴᴇʀᴀᴛɪɴɢ ᴄᴀʀʙᴏɴ...")
carbon = await make_carbon(txt)
await m.edit_text("ᴜᴩʟᴏᴀᴅɪɴɢ ɢᴇɴᴇʀᴀᴛᴇᴅ ᴄᴀʀʙᴏɴ...")
await c.send_photo(
message.chat.id,
photo=carbon,
caption=f"» ʀᴇᴏ‌ᴜᴇsᴛᴇᴅ ʙʏ : {message.from_user.mention}",
)
await m.delete()
carbon.close()


📄⭐️By : Dev Mohamed ⭐️
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1
Forwarded from PyCrazy
TshakeV2-main.zip
65.4 KB
😀 سورس تشاكي

🤗-Source Protection Python

-سورس حمايه بالغه python👼
Please open Telegram to view this post
VIEW IN TELEGRAM
❤2
Forwarded from PyCrazy
الاسرع.py
3.3 KB
Word order code
language python

𝙥𝙞𝙥 ⇲ :

pip install pyrogram ==2.0.106

python projects
Dev
👍3
Forwarded from PyCrazy
from pyrogram import Client, filters
from pyrogram.types import Message

app = Client("B3KKK", api_id = 14170449, api_hash = "03488b3c030fe095667e7ca22fe34954", bot_token = "6189018608:")

@app.on_message(filters.video_chat_started)
async def StartCall(c:Client,m:Message):
await m.reply("> تم بدأ مكالمة فيديو ")


@app.on_message(filters.video_chat_ended)
async def EndCall(c:Client,m:Message):
await m.reply("> تم انهاء مكالمة الفيديو")


@app.on_message(filters.video_chat_members_invited)
async def CallTag(c:Client,m:Message):
text = f"¦> قام {m.from_user.mention}\n - بدعوة : "
x = 0
for Name in m.video_chat_members_invited.users:
try:
text += f"[{Name.first_name}](tg://user?id={Name.id}) "
x += 1
except Exception as e:
await m.reply(str(e) +
"\n حدث خطأ!!",quote =True)
return
try:
await m.reply(f"{text}")
except Exception as e:
await m.reply(str(e) +
"\n حدث خطأ!!",quote =True)
return


print("انتظر.........")
app.run()
print("تم التشغيل")

#عارف_انو_سهل
#لكن_فيه_ناس_بتبيعوا

كود تنبيه بفتح الكول و قفلها
كود تنبيه بدعوه شخص للكول

By : Dev Mohamed 🇪🇬🇪🇬

Pyrogram : Link
👍3
Forwarded from PyCrazy
@b3kkk.on_message(filters.command('say'))
def echo_(bot, m):
text = m.text.split(None,1)[1]
m.reply(text)


Example:

You:
/say السلام عليكم

Bot:
السلام عليكم


Channel : @B3KKK
❤1