❤2👍2🔥1🎉1
Forwarded from Tấn Hưng!❤️ (Thông Báo)
Please open Telegram to view this post
VIEW IN TELEGRAM
🥰7👍5❤3🎉2😍2💯2
import random
TOKEN = "TOKEN_BOT_CỦA_BẠN"
bot = telebot.TeleBot(TOKEN)
secret_number = random.randint(1, 100)
@bot.message_handler(commands=['start'])
def start_game(message):
bot.reply_to(message, "Mình đã chọn 1 số từ 1 đến 100, bạn đoán thử đi!")
@bot.message_handler(func=lambda m: m.text.isdigit())
def guess(message):
guess_num = int(message.text)
if guess_num < secret_number:
bot.reply_to(message, "Số lớn hơn 📈")
elif guess_num > secret_number:
bot.reply_to(message, "Số nhỏ hơn 📉")
else:
bot.reply_to(message, "🎉 Chính xác!")
bot.infinity_polling()
👍7❤4🥰4😍2💯2👏1
import requests
TOKEN = "TOKEN_BOT_CỦA_BẠN"
bot = telebot.TeleBot(TOKEN)
@bot.message_handler(func=lambda m: True)
def chat_ai(message):
r = requests.get(f"https://api.affiliateplus.xyz/api/chatbot?message={message.text}&botname=Bot&ownername=Admin&user=1").json()
bot.reply_to(message, r['message'])
bot.infinity_polling()
👍8😍6🥰5❤3💯2
from discord.ext import commands
TOKEN = "TOKEN_DISCORD_CỦA_BẠN"
bot = commands.Bot(command_prefix="/", intents=discord.Intents.all())
@bot.command()
async def meme(ctx, *, text):
url = f"https://api.memegen.link/images/custom/_/{text}.png?background=https://i.imgflip.com/1bij.jpg"
await ctx.send(url)
bot.run(TOKEN)
👍5🥰5❤4😍2👏1
print("IP Public của bạn:", requests.get("https://api64.ipify.org?format=json").json()["ip"])❤6🥰6😍5👍3🔥2🎉1💯1
st = speedtest.Speedtest()
st.get_best_server()
print("Download:", round(st.download() / 1_000_000, 2), "Mbps")
print("Upload:", round(st.upload() / 1_000_000, 2), "Mbps")
❤6😍6🥰4👍3🔥2
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