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
اضف رد.py
8.4 KB
- بوت ردود

فيه :
– اضف رد
– مسح رد
– الردود
– مسح الردود

-•- بتخزين txt ، الأوامر تعمل للمشرفين فقط
❤4👍3🔥1
from pyrogram import Client,filters



@app.on_message(filters.voice)
def anything(bot, m):
m.reply(m.voice.file_id)


☝️هذا الكود اي ريكورد او بصمه تبعتها بطلع الك رابط الريكورد او البصمه اي كان حجمها اي


@app.on_message(filters.command('s'))
def anything_(bot, m):
m.reply_voice("")



☝️هذا الكود تحط فيه اي رابط ريكود او بصمه
بين الاقواس. " " و اكتب /s ينرسل البصمه او الريكورد
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