ch
Feedback
ملفات Pydroid+php

ملفات Pydroid+php

前往频道在 Telegram
3 519
订阅者
-724 小时
-217
-11530
帖子存档
import telebot import config import json from time import time bot = telebot.TeleBot(config.token) users = {message.from_user.id: message.from_user.username} file = open("users.json", "w") json.dump(users, file) file.close() users.update({message.from_user.id: message.from_user.username}) file = open("users.json", "w") json.dump(users, file) file.close() print(bot.get_me()) error_reply = "الأمر لا يعمل بدون رد" error_command = "هذا الأمر غير متاح لك!" @bot.message_handler(commands=['start', 'help']) def start(message): bot.send_message(message.chat.id, f"الأوامر الخاصة بي:\n/mute - إعطاء كتم\n/unmute - رفع الكتم\n/ban - حظر\n/unban - إلغاء الحظر\n/info - الحصول على معلومات عن المستخدم\n/ping - pong\n\nبالإضافة إلى ترحيب ووداع الأعضاء.", reply_to_message_id=message.message_id, parse_mode=["Markdown"]) @bot.message_handler(content_types=['new_chat_members', 'left_chat_member']) def member(message): bot.delete_message(message.chat.id, message.message_id) if message.new_chat_members: bot.send_message(message.chat.id, f"👋🏻مرحباً [{message.new_chat_members[-1].first_name}](tg://user?id={message.new_chat_members[-1].id})", parse_mode=["Markdown"]) elif message.left_chat_member: bot.send_message(message.chat.id, f"🤞🏻وداعاً [{message.left_chat_member.first_name}](tg://user?id={message.left_chat_member.id})", parse_mode=["Markdown"]) @bot.message_handler(commands=['mute']) def restrict_chat_member(message): user = bot.get_chat_member(message.chat.id, message.from_user.id) if user.status in ['administrator', 'creator']: if message.reply_to_message: bot.restrict_chat_member(message.chat.id, message.reply_to_message.from_user.id, until_date=time() + 1) bot.send_message(message.chat.id, f"[{message.reply_to_message.from_user.first_name}](tg://user?id={message.reply_to_message.from_user.id})\nالعضو حصل على كتم بشكل دائم!", reply_to_message_id=message.message_id, parse_mode=["Markdown"]) else: bot.send_message(message.chat.id, error_reply) else: bot.send_message(message.chat.id, error_command) @bot.message_handler(commands=['ban']) def kick_chat_member(message): user = bot.get_chat_member(message.chat.id, message.from_user.id) if user.status in ['administrator', 'creator']: if message.reply_to_message: bot.kick_chat_member(message.chat.id, message.reply_to_message.from_user.id) bot.send_message(message.chat.id, f"[{message.reply_to_message.from_user.first_name}](tg://user?id={message.reply_to_message.from_user.id})\nالعضو محظور!", reply_to_message_id=message.message_id, parse_mode=["Markdown"]) else: bot.send_message(message.chat.id, error_reply) else: bot.send_message(message.chat.id, error_command) @bot.message_handler(commands=['unban']) def unban_chat_member(message): user = bot.get_chat_member(message.chat.id, message.from_user.id) if user.status in ['administrator', 'creator']: if message.reply_to_message: bot.unban_chat_member(message.chat.id, message.reply_to_message.from_user.id) bot.send_message(message.chat.id, f"[{message.reply_to_message.from_user.first_name}](tg://user?id={message.reply_to_message.from_user.id})\nالعضو مفكّر من الحظر!", reply_to_message_id=message.message_id, parse_mode=["Markdown"]) else: bot.send_message(message.chat.id, error_reply) else: bot.send_message(message.chat.id, error_command) @bot.message_handler(commands=['unmute']) def restrict_chat_member(message): user = bot.get_chat_member(message.chat.id, message.from_user.id) if user.status in ['administrator', 'creator']: if message.reply_to_message: bot.restrict_chat_member(message.chat.id, message.reply_to_message.from_user.id, True, True, True, True)

عمي استضافه فول كل يوم تكدر تجمع 10 عملات جمعتهن بدقيقه وكل 10 عملات تضل الاستضافه شغاله اسبوع يعني هذني ال 10 عملات تخلي بوت
+1
عمي استضافه فول كل يوم تكدر تجمع 10 عملات جمعتهن بدقيقه وكل 10 عملات تضل الاستضافه شغاله اسبوع يعني هذني ال 10 عملات تخلي بوتك 6 ايام شغاله وترجع تجمع بعد هم 10 ويضل شغال هواي +تشغل لغه بايثون وبعد 6 لغات ثانيه

بوت تنزيل افتارات اجانب انمي اي شي تريد ينزل 🤨🔥 قم بمشاركة البوت : @FTRTTBOT

تشغل بوتات تلي هم

يعني مو حلو البوت مانزل ملفة ؟

بابا شبيكم ؟ البوت يبحث عن صور هيج اكتب كمثال افتارات بنات اجانب مو تروح تشمر متحركه تكلي مايبحث لو تشمر صورة غير تكتب نص 🤣

بوت تنزيل افتارات اي شي تريد ينزل بلغة php ملف البوت 🙈🔥 كلة تمبلر معرف البوت @FTRTTBOT رأيكم بالبوت ؟

استضافة بوتات بايثون تشغل بوتات ديسكورد تلكرام يمكن تشغل ماجربتها لان تحتاج تسجيل بحساب ديسكورد رابط الاستضافه https://bot-hosting.net/ @LL_php

import os import base64 import hashlib import requests import time from telebot import TeleBot from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton bot = TeleBot(token='توكن') # توكن البوت API_KEY = "KEY" # مفتاح Remini API CONTENT_TYPE = "image/jpeg" _TIMEOUT = 60 _BASE_URL = "https://developer.remini.ai/api" def _get_image_md5_content(file_path: str) -> tuple[str, bytes]: with open(file_path, "rb") as fp: content = fp.read() image_md5 = base64.b64encode(hashlib.md5(content).digest()).decode("utf-8") return image_md5, content def enhance_photo_and_send_link(file_path: str, chat_id: int): image_md5, content = _get_image_md5_content(file_path) with requests.Session() as session: session.headers.update({"Authorization": f"Bearer {API_KEY}"}) response = session.post( f"{_BASE_URL}/tasks", json={ "tools": [ {"type": "face_enhance", "mode": "beautify"}, {"type": "background_enhance", "mode": "base"} ], "image_md5": image_md5, "image_content_type": CONTENT_TYPE } ) assert response.status_code == 200 body = response.json() task_id = body["task_id"] response = session.put( body["upload_url"], headers=body["upload_headers"], data=content, timeout=_TIMEOUT ) assert response.status_code == 200 response = session.post(f"{_BASE_URL}/tasks/{task_id}/process") assert response.status_code == 202 for i in range(50): response = session.get(f"{_BASE_URL}/tasks/{task_id}") assert response.status_code == 200 if response.json()["status"] == "completed": break else: time.sleep(2) output_url = response.json()["result"]["output_url"] bot.send_photo(chat_id, output_url) os.remove(file_path) @bot.message_handler(commands=['start']) def start_command(message): keyboard = InlineKeyboardMarkup(row_width=2) dev_button = InlineKeyboardButton("المطور 👨‍💻", url="https://t.me/WWW99W") update_button = InlineKeyboardButton("التحديث ✅", url="https://t.me/LL_php") keyboard.add(dev_button, update_button) welcome_message = """ <b>مرحبًا بك في ريميني تحسين الصور تليجرام بوت.</b> الرجاء إرسال لي صورة لتحسينها. """ bot.send_message( message.chat.id, welcome_message, parse_mode='html', reply_markup=keyboard ) @bot.message_handler(content_types=['photo']) def handle_photo(message): photo = message.photo[-1] file_path = os.path.join(os.getcwd(), f"{photo.file_unique_id}.jpg") file_info = bot.get_file(photo.file_id) file = requests.get(f'https://api.telegram.org/file/bot{bot.token}/{file_info.file_path}') with open(file_path, 'wb') as new_file: new_file.write(file.content) bot.send_message(message.chat.id, "<b>جارٍ تحسين صورتك...</b>", parse_mode='html') enhance_photo_and_send_link(file_path, message.chat.id) @bot.message_handler(func=lambda message: True) def handle_invalid_message(message): bot.send_message(message.chat.id, "<b>لا يُسمح لي بتلقي رسائل نصية أو رموز تعبيرية.</b>\n\n<b>الرجاء إرسال فقط صور.</b>", parse_mode='html') if name == 'main': bot.polling(none_stop=True) كود بوت تحسين الصور استبدل KEY بمفتاحك من موقع https://developer.remini.ai/ @LL_php

يبيعون الاستضافات محد ينطي الاسماء مالتهن واني انزل مجاني سوي مشاركه للقناة 🙈🔥

استضافة بوتات تلكرام فول رخيصة وخوش استضافة تشغل اي بوت رابط الاستضافة https://darksidehost.com/ @LL_php
استضافة بوتات تلكرام فول رخيصة وخوش استضافة تشغل اي بوت رابط الاستضافة https://darksidehost.com/ @LL_php

bot('setMessageReaction', [ 'chat_id' => chat_id, 'message_id' => message_id, 'reaction' => [ 'type' => "emoji", 'emoji' => "👍" ] ]); كود اضافة رد فعل لايك تكدر تغير الايموجي @LL_php

<?php class HttpClient { private $baseUrl; private $apiKey; public function __construct($baseUrl, $apiKey) { $this->baseUrl = $baseUrl; $this->apiKey = $apiKey; } public function sendRequest($url, $method, $data = []) { $ch = curl_init($this->baseUrl . $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Authorization: ' . $this->apiKey, ]); $response = curl_exec($ch); curl_close($ch); return $response; } } class SttApi { private $httpClient; public function __construct(HttpClient $httpClient) { $this->httpClient = $httpClient; } public function transcribeAudio($filePath) { $data = [ 'file' => new \CurlFile($filePath), ]; return $this->httpClient->sendRequest('/api/v1/stt', 'POST', $data); } } $apiKey = '[API_KEY]'; $baseUrl = 'https://mohir.ai'; $filePath = 'audio.mp3'; $http = new HttpClient($baseUrl, $apiKey); $sttApi = new SttApi($http); $response = $sttApi->transcribeAudio($filePath); echo $response; ?> تحويل الصوت الئ نص خلي مفتاحك من موقع https://mohir.ai @LL_php

اذا تريد استضافه بوتات تلي سريعة ورخيصه ب 3$ مدري ب 2$ استخدم هاي نسخه المدفوعه pantheonsite المجانيه مو سريعه فقط المدفوعه صاروخ.

<?php header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Methods: GET, OPTIONS"); header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept"); $url = "https://www.blackbox.ai/api/chat"; $headers = [ "Content-Type: application/json", "alt-svc: h3=\":443\"; ma=86400", "cf-cache-status: DYNAMIC", "cf-ray: 83b147d30ae724a8-KTM", "content-encoding: br", "content-type: text/plain; charset=utf-8", "date: Mon, 25 Dec 2023 13:02:49 GMT", "rndr-id: 5dcfc605-427b-4e43", "server: cloudflare", "vary: Accept-Encoding", "x-experimental-stream-data: false", "x-render-origin-server: Render" ]; if (!isset($_GET['question'])) { echo "No 'question' parameter provided."; die(); } $question = $_GET['question']; $data = [ "messages" => [ [ "id" => "CxG2ZAW", "content" => $question, "role" => "user" ] ], "id" => "CxG2ZAW", "previewToken" => null, "userId" => "2796af59-2e11-47e7-95f2-d93a3c71021c", "codeModelMode" => true, "agentMode" => [] ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); $response = curl_exec($ch); $status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($status_code == 200) { $output = [ "answer" => $response, "join" => "@LL_php" ]; echo json_encode($output); } else { echo "Request failed with status code: $status_code"; } curl_close($ch); ?> ايبي ذكاء اصطناعي مربوط بموقع www.blackbox.ai طريقه الاستخدام https://LL_php/api.php?question=hi @LL_php

معلومات الرقم @LL_php

هذا هم طار هنا بتلي ناس زبايل حشاكم https://t.me/TRHNEM

import os import requests import telebot from bs4 import BeautifulSoup bot = telebot.TeleBot("BOTOTKEN") @bot.message_handler(commands=['start']) def send_welcome(message): bot.reply_to(message, "مرحبًا! أرسل لي رابط MediaFire لتحميل الملف.") def get_mediafire_download_link(url): try: page = requests.get(url) soup = BeautifulSoup(page.content, 'html.parser') download_link = soup.find('a', {'id': 'downloadButton'})['href'] return download_link except Exception as e: print(f"حدث خطأ أثناء جلب رابط التحميل: {e}") return None @bot.message_handler(func=lambda message: True) def download_mediafire(message): text = message.text if text.startswith('http://www.mediafire.com/') or text.startswith('https://www.mediafire.com/'): bot.reply_to(message, "جارٍ رفع الملف. يرجى الانتظار...") file_url = text direct_download_link = get_mediafire_download_link(file_url) if direct_download_link: file_response = requests.get(direct_download_link, stream=True, timeout=60) file_name = direct_download_link.split('/')[-1] file_size = int(file_response.headers['Content-Length']) if file_size <= 50 * 1024 * 1024: bot.send_chat_action(message.chat.id, 'upload_document') with open(file_name, 'wb') as file: file.write(file_response.content) with open(file_name, 'rb') as file: bot.send_document(message.chat.id, file, caption=f"إليك ملفك: {file_name}") os.remove(file_name) else: bot.reply_to(message, "حجم الملف يتجاوز الحد الأقصى المسموح به من 50 ميجابايت.") else: bot.reply_to(message, "تعذر جلب رابط التحميل من MediaFire.") else: bot.reply_to(message, "يرجى تقديم رابط صحيح من MediaFire.") bot.polling() @LL_php

رجع جان طاير مدري منو رجعه.

هذا كروب طاير اذا اكو شخص يعرف يرجعه. https://t.me/TRHNEM