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 ينرسل البصمه او الريكورد
Python Solve Problems | python tools | ملفات php | بوتات php | كورس python | ملفات python | بوتات python | حل مشاكل بايثون
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'))…
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
Python Solve Problems | python tools | ملفات php | بوتات php | كورس python | ملفات python | بوتات python | حل مشاكل بايثون
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 .") …
لازم تحط السورس بملف py وبعدين تحط الملفين مع بعض بولدر واحد 🫶
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)مثال علي مكتبه الوقت
Forwarded from PyCrazy
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4❤1
PyCrazy
Media download.py
اي حد عنده افكار يقول و اعملها
Forwarded from PyCrazy
@B3KKK--Telebot @all.py
2 KB
—
pip install pytelegrambotapi—
pip install asyncio—
pip install pyrogramPlease open Telegram to view this post
VIEW IN TELEGRAM
❤1
Forwarded from PyCrazy
اله حاسبه.py
3.2 KB
pip install pyrogramPlease open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from PyCrazy
لوحه بايروجرام 1.py
59.3 KB
pip install pyrogram==2.0.56pip install pyromod==1.5pip install requestsPlease open Telegram to view this post
VIEW IN TELEGRAM
لوحه بايروجرام 2.py
59.5 KB
pip install pyrogram==2.0.56pip install pyromod==1.5pip install requestsكتابتي....
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
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()Please open Telegram to view this post
VIEW IN TELEGRAM
👍1
Forwarded from PyCrazy
TshakeV2-main.zip
65.4 KB
-سورس حمايه بالغه python
Please open Telegram to view this post
VIEW IN TELEGRAM
❤2
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