Forwarded from Tấn Hưng!❤️ (Thông Báo)
Please open Telegram to view this post
VIEW IN TELEGRAM
❤8😍5🥰2👏2👍1🔥1
Forwarded from Tấn Hưng!❤️ (Thông Báo)
Cập nhật lại bảng giá nạp kim cương. Tính từ 1/9
👍7❤6😍6🥰5🎉2👏1
⚙️ You Can Use This YouTube API On Your Music Bots.
API_URL : https://ytmp3.taitanapi.workers.dev
API_KEY : TaitanXApi
Example : https://ytmp3.taitanapi.workers.dev/song/rKQAkGc-Evc?api=TaitanXApi
"developer": "@TaitanXBots",
"link": "https://t.me/TaitanXApi/52",
"title": "Gata only ( dscvr remix) - floyymenor",
"type": "audio"
}
This is only for yukki based repo.
Add this code to your Youtube.py file to enjoy the Free API.
Step1: These packages need to be imported above.
import asyncio
import os
import re
import requests
from urllib.parse import urlparse
Step2: Add this function above any other function.
async def get_audio_api(link: str):
from .. import app
x = re.compile(
r'(?:https?://)?(?:www\.)?(?:youtube\.com/(?:watch\?v=|embed/|shorts/)|youtu\.be/)([A-Za-z0-9_-]{11})'
)
video_id = x.search(link)
vidid = video_id.group(1) if video_id else link
xyz = os.path.join("downloads", f"{vidid}.mp3")
if os.path.exists(xyz):
return xyz
loop = asyncio.get_running_loop()
def get_url():
api_url = f"https://ytmp3.taitanapi.workers.dev/song/{vidid}?api=TaitanXApi"
try:
return requests.get(api_url).json().get("link")
except:
return None
download_url = await loop.run_in_executor(None, get_url)
parsed = urlparse(download_url)
parts = parsed.path.strip("/").split("/")
cname, msgid = str(parts[0]), int(parts[1])
msg = await app.get_messages(cname, msgid)
await msg.download(file_name=xyz)
while not os.path.exists(xyz):
await asyncio.sleep(0.5)
return xyz
Step3: Now replace this line with the audio_dl line.
downloaded_file = await get_audio_api(link)
Contact us if there is any problem: @Tait4nXx
~Credit @TaitanXBots
🥰7❤6👍5🔥2😍2
BAN-CHECK-API-main.zip
3.2 KB
😍7🥰6❤3👍3👏3
PACKET
def CHangeRoomName(room_id, key, iv):
fields = {1: 13,2: {1: int(room_id),2: f"{GeneratRandomHexColor()}Free Fire",4: 1,5: 15,6: 8,7: 30,8: 1,9: 1,10: 2,11: 36981056,12: 2368584,13: 1,18: {0: 1},30: 1}}
packet = create_packet(fields).hex()
encrypted_packet = aes_encrypt(packet, key, iv)
hlen = len(encrypted_packet) // 2
return bytes.fromhex("0E15000000" + dec_to_hex(hlen) + encrypted_packet)
🥰8👍6❤5😍2🔥1💯1
INFO .zip
3.9 KB
👍9🥰6❤5😍3💯2👏1
Forwarded from Tấn Hưng!❤️ (Thông Báo)
😍8❤6🥰4👍3👏2🔥1
AI_source.py
2.4 KB
سورس Api التحدث مع الذكاء الاصطناعي❤️
الاستعمال:
http://127.0.0.1:5000/ask?msg=hi&lang=ar
Source code Api Ai❤️
Usage:
http://127.0.0.1:5000/ask?msg=hi&lang=en
Developer:@o_mk_w9💀
🥰6❤5😍5🔥3👍2🎉1💯1