autoreg.py
1.7 KB
😍9👍6🥰52
def convert_timestamp(ms):
return datetime.fromtimestamp(ms / 1000).strftime("%d/%m/%Y %H:%M")

@bot.message_handler(commands=['vietlott'])
def send_vietlot_result(message):
auto_react_to_command(message)
try:
mega_url = "https://coccoc.com/composer/vertical/lottery?id=4"
power_url = "https://coccoc.com/composer/vertical/lottery?id=5"

mega_data = requests.get(mega_url).json()
power_data = requests.get(power_url).json()

text = "🎲 <b>KẾT QUẢ XỔ SỐ VIETLOTT</b>\n\n"

# ===== MEGA 6/45 =====
if mega_data.get("lottery"):
mega = mega_data["lottery"]
info = mega["data"]

block = f"🔷 <b>Mega 6/45</b>\n"
block += f"📅 Ngày: {convert_timestamp(info['day'])}\n"
block += f"🔢 Kỳ: {info['round']}\n"
block += f"🎉 Kết quả: <code>{' - '.join(info.get('results', []))}</code>\n"

prizes = info.get("prizes", [])
if prizes:
block += "🏆 <b>Giải thưởng:</b>\n"
for p in prizes:
num = p.get("numberPrize", "")
val = p.get("value", "")
if num == "0":
block += f"🥇 Jackpot: {num} người trúng - 💰 {val}\n"
else:
block += f"🎖 {num} người trúng - 💵 {val}\n"
else:
block += "⚠️ Không có dữ liệu giải thưởng.\n"

text += f"<blockquote>{block.strip()}</blockquote>\n\n"

# ===== POWER 6/55 =====
if power_data.get("lottery"):
power = power_data["lottery"]
info = power["data"]

block = f"🔶 <b>Power 6/55</b>\n"
block += f"📅 Ngày: {convert_timestamp(info['day'])}\n"
block += f"🔢 Kỳ: {info['round']}\n"
block += f"🎉 Kết quả: <code>{' - '.join(info.get('results', []))}</code>\n"

prizes = info.get("prizes", [])
if prizes:
block += "🏆 <b>Giải thưởng:</b>\n"
for p in prizes:
num = p.get("numberPrize", "")
val = p.get("value", "")
if num == "0":
block += f"🥇 Jackpot 1: {num} người trúng - 💰 {val}\n"
elif num == "1":
block += f"🥈 Jackpot 2: {num} người trúng - 💰 {val}\n"
else:
block += f"🎖 {num} người trúng - 💵 {val}\n"
else:
block += "⚠️ Không có dữ liệu giải thưởng.\n"

text += f"<blockquote>{block.strip()}</blockquote>"

bot.reply_to(message, text.strip(), parse_mode="HTML")

except Exception as e:
bot.reply_to(message, f" Lỗi khi lấy dữ liệu: {e}")
🥰85👍5😍4👏1🎉1💯1
zLocket-Tool-Pro-main.zip
1.2 MB
😍9🥰6👍32🎉1
Code website hữu ích Lấy IPv4 khi truy cập trang website tránh tình trạng lạm dụng
<?php
// Lấy địa chỉ IP của người dùng
$ip = $_SERVER['REMOTE_ADDR'];

// Tên file log để lưu IP
$log_file = "logs/ip_log.txt";

// Tạo thư mục nếu chưa có
if (!file_exists("logs")) {
mkdir("logs", 0777, true);
}

// Kiểm tra nếu IP chưa tồn tại trong log
$logged_ips = file_exists($log_file) ? file($log_file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES) : [];

if (!in_array($ip, $logged_ips)) {
// Ghi IP vào file
$entry = $ip . " - " . date("Y-m-d H:i:s") . "\n";
file_put_contents($log_file, $entry, FILE_APPEND);
echo "IP của bạn đã được ghi lại.";
} else {
echo "IP của bạn đã được ghi trước đó.";
}
?>
👍64😍3🎉2🔥1💯1
like (1).py
5.1 KB
😍95👍3🥰3
ChatAI STV là API giúp bạn giao tiếp với AI như trò chuyện thực tế, dễ dàng tích hợp và miễn phí dùng thử.

Tính năng nổi bật:

Lưu lịch sử: Ghi nhớ 100 tin nhắn gần nhất để giữ ngữ cảnh.

Dễ tích hợp: Chỉ cần vài dòng Python để sử dụng.

Miễn phí dùng thử: Nhận ngay token trị giá 100$.


Token miễn phí:
Dùng thử ngay với token:
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


Mẫu code sử dụng:
# Chat với AI - STV
import json, datetime, os, requests

API_KEY = "skTOKEN"
API_URL = "https://v0-token-replacement-issue.vercel.app/api/V1/chataistv"
chat_history = []

def send_message(message):
chat_history.append({"role": "user", "content": message})
res = requests.post(API_URL, headers={
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json"
}, json={"messages": chat_history[-20:], "model": "meta-llama/llama-4-maverick:freeq"})
if res.status_code == 200:
reply = res.json()["choices"][0]["message"]["content"]
chat_history.append({"role": "assistant", "content": reply})
return reply
return f"Lỗi: {res.status_code}"

while True:
user_input = input("Bạn: ")
if user_input.lower() in ["exit", "quit"]: break
print("AI:", send_message(user_input))

Code mẫu dùng GPT-4.0 (OpenAI):
from openai import OpenAI
client = OpenAI(api_key='YOUR_API_KEY')
messages = [{"role": "system", "content": "Bạn là một trợ lý thông minh."}]
while True:
user_input = input("Bạn: ")
if user_input.lower() == "exit": break
messages.append({"role": "user", "content": user_input})
reply = client.chat.completions.create(model="gpt-4o-mini", messages=messages).choices[0].message.content
messages.append({"role": "assistant", "content": reply})
print("GPT-4:", reply)

Hỗ trợ nhận Token Chat GPT 4.0 miễn phí, ib Admin để được cấp.
Lưu ý: Token miễn phí có giới hạn.

Token GPT 4.0 miễn phí:
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
8🥰5😍4👍3👏1💯1
botql.rar
9 KB
bot quản lý tích hợp ai
😍7🥰42👍2👏1💯1
Các lệnh này có thể được sử dụng bằng cách trả lời tin nhắn của người dùng mục tiêu hoặc cung cấp ID người dùng của họ.

/mute hoặc khóa: Tắt tiếng người dùng.

khóa (trả lời tin nhắn)khóa 30m (trả lời tin nhắn, tắt tiếng 30 phút)khóa <ID_người_dùng>khóa <ID_người_dùng> 1h

/unmute hoặc mở khóa / mở: Bỏ tắt tiếng người dùng.

mở khóa (trả lời tin nhắn)mở <ID_người_dùng>

/ban hoặc cấm: Cấm người dùng khỏi nhóm.

cấm (trả lời tin nhắn)cấm <ID_người_dùng>

/unban hoặc bỏ cấm: Bỏ cấm người dùng khỏi nhóm.

bỏ cấm (trả lời tin nhắn)bỏ cấm <ID_người_dùng>

/kick hoặc đuổi: Đuổi người dùng khỏi nhóm.

đuổi (trả lời tin nhắn)đuổi <ID_người_dùng>

/promote hoặc thăng cấp: Thăng cấp người dùng thành admin.

thăng cấp (trả lời tin nhắn)thăng cấp <ID_người_dùng>

/demote hoặc hạ cấp: Hạ cấp admin thành thành viên thường.

hạ cấp (trả lời tin nhắn)hạ cấp <ID_người_dùng>

/pin hoặc ghim: Ghim một tin nhắn.

ghim (trả lời tin nhắn bạn muốn ghim)

/unpin hoặc bỏ ghim: Bỏ ghim tất cả các tin nhắn.

bỏ ghim (không cần trả lời tin nhắn)

/info hoặc thông tin: Lấy thông tin về người dùng (bao gồm mô tả từ Gemini).

thông tin (trả lời tin nhắn của người dùng)thông tin <ID_người_dùng>
8👍4😍3🥰2👏2🎉1
Dưới Đây Là Tổng Hợp Các Proxy Bạn Có Thể Dùng:
1. Click Vào Đây
2. Click Vào Đây
3. Click Vào Đây
4. Click Vào Đây
5. Click Vào Đây
6. Click Vào Đây
7. Click Vào Đây
8. Click Vào Đây
9. Click Vào Đây
10. Click Vào Đây
11. Click Vào Đây
12. Click Vào Đây
13. Click Vào Đây
14. Click Vào Đây
15. Click Vào Đây
16. Click Vào Đây
17. Click Vào Đây
18. Click Vào Đây
Mọi Người Có Thể Click Vào Bất Kì Số Nào Miễn Là Phù Hợp Với Mình
#Lưu ý: Nên Bật Trước Khi Bị Cấm Để Tránh Gián Đoạn
9👍5🥰3👏2😍2🎉1
VISIT API SOURCE CODE (Aditya).zip
3.7 KB
This ZIP file contains the source code of the visit API for Free Fire OB49.


CREDIT: @ADITYASHARMA766208
11🥰6👍2😍1💯1
Aruu-bancheck.zip
1.6 KB
Ban check api source code
11👍5🥰4😍3
Instagram reels Downloader Code
import requests
import re
from urllib.parse import unquote

def get_direct_reel_urls(reel_url):
    headers = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
    }
   
    try:
        response = requests.get(reel_url, headers=headers, timeout=10)
        response.raise_for_status()
       
        html_content = response.text
       
        video_match = re.search(r'"video_url":"(https:\\/\\/[^"]+\.mp4[^"]*)"', html_content)
        if video_match:
            video_url = unquote(video_match.group(1)).replace('\\u0026', '&')
        else:
            video_url = None
       
        thumbnail_match = re.search(r'"thumbnail_url":"(https:\\/\\/[^"]+\.jpg[^"]*)"', html_content)
        if thumbnail_match:
            thumbnail_url = unquote(thumbnail_match.group(1)).replace('\\u0026', '&')
        else:
            thumbnail_match = re.search(r'"display_url":"(https:\\/\\/[^"]+\.jpg[^"]*)"', html_content)
            if thumbnail_match:
                thumbnail_url = unquote(thumbnail_match.group(1)).replace('\\u0026', '&')
            else:
                thumbnail_url = None
       
        return video_url, thumbnail_url
       
    except requests.exceptions.RequestException as e:
        print(f"Request failed: {e}")
    except Exception as e:
        print(f"Error occurred: {e}")
   
    return None, None

def main():
    reel_url = input("Enter Instagram Reel URL: ").strip()
   
    if not reel_url.startswith(('http://', 'https://')):
        reel_url = f"https://{reel_url}"
   
    video_url, thumbnail_url = get_direct_reel_urls(reel_url)
   
    if video_url:
        print("\nExtracted Direct URLs:")
        print(f"Video URL: {video_url}")
        if thumbnail_url:
            print(f"Thumbnail URL: {thumbnail_url}")
    else:
        print("Failed to extract direct URLs.")

if __name__ == "__main__":
    main()

You can make api bot anything using this

Share with credit @PikaApis

Also you can use our API:-
https://instadl.shahadathassan.workers.dev/?url=https://www.instagram.com/reel/DHMIvS6MKi3/?igsh=MTJ2MDlmYzY5ejMxag==
11🥰5😍3👍2🔥2🎉1💯1
🤖 BOT AUTO UID 24H

Gửi lệnh: /addid <UID> để nhận hỗ trợ

Giới hạn: 3 lần/ngày (VIP: 10 lần/ngày)

Phải tham gia kênh: @tanhungNotification

Kiểm tra bot: /status

Liên hệ admin để nâng cấp VIP
@tanhung11231 💎
Sử dụng tại đây: https://t.me/checkinfo123
9😍6🥰5👍2👏2🎉1
disvord.py
21 KB
This an telegram like bot code you only have to replace the bot token and like api and if you have different response of like api so update this code to handle your like api response

---------------------------------
CREDIT: @Mohd1_aaqib
---------------------------------
😍75👍5🥰2🎉2💯1
🔥NEW MAP LIKE SEVER IND🔥
👇
#FREEFIRE4D41B60325608C3BA379F9BF8ECA118E3250
7🥰6👍4😍3💯2🎉1
🚀 Complete Bancheck Telegram Bot Code

import requests
import telebot

BOT_TOKEN = 'YOUR_TELEGRAM_BOT_TOKEN_HERE'
bot = telebot.TeleBot(BOT_TOKEN, parse_mode="HTML")

def is_valid_uid(uid):
    return uid.isdigit() and 8 <= len(uid) <= 11

def check_ban_status(uid):
    url = f'https://ff.garena.com/api/antihack/check_banned?lang=en&uid={uid}'
    headers = {
        'User-Agent': 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36',
        'Accept': 'application/json, text/plain, */*',
        'authority': 'ff.garena.com',
        'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8',
        'referer': 'https://ff.garena.com/en/support/',
        'sec-ch-ua': '"Not_A Brand";v="8", "Chromium";v="120"',
        'sec-ch-ua-mobile': '?1',
        'sec-ch-ua-platform': '"Android"',
        'sec-fetch-dest': 'empty',
        'sec-fetch-mode': 'cors',
        'sec-fetch-site': 'same-origin',
        'x-requested-with': 'B6FksShzIgjfrYImLpTsadjS86sddhFH',
    }
    resp = requests.get(url, headers=headers)
    data = resp.json().get('data', {})
    period = int(data.get('period', 0))
    if period == 0:
        return f"<b>UID:</b> <code>{uid}</code>\n<b>Status:</b> Not Banned 😎"
    else:
        return f"<b>UID:</b> <code>{uid}</code>\n<b>Status:</b> Permanently Banned 😕"

@bot.message_handler(commands=['start'])
def handle_start(message):
    bot.reply_to(message, "<b>👋 Welcome to Bancheck Bot!</b>\n\nUse <b>/bancheck &lt;uid&gt;</b> to check ban status.\nExample:\n<code>/bancheck 123456789</code>")

@bot.message_handler(commands=['bancheck'])
def handle_bancheck(message):
    args = message.text.split()
    if len(args) != 2:
        bot.reply_to(message, "<b>Usage:</b> /bancheck &lt;uid&gt;")
        return
    uid = args[1]
    if not is_valid_uid(uid):
        bot.reply_to(message, "<b>Invalid UID!</b>\nUID must be 8 to 11 digits and only numbers.")
        return
    result = check_ban_status(uid)
    bot.reply_to(message, result)

bot.polling()


🚀 Setup Steps:

1️⃣ Install required Python libraries:

pip install pyTelegramBotAPI requests


2️⃣ Replace this line:

BOT_TOKEN = 'YOUR_TELEGRAM_BOT_TOKEN_HERE'


with your Telegram Bot Token.

3️⃣ Run your bot file:

python {filename}.py


4️⃣ Done Your Telegram Bancheck Bot is ready and live 🚀


CREDIT: @ADITYASHARMA766208 👑

GIVE REACTIONS
6🥰6👍4😍4🔥2🎉2💔2👏1
Region API Documentation

API Endpoint
GET /region

Setup Instructions


1. Requirements:
- Python 3.6+
- Flask
- Requests


2. Install dependencies:

   pip install flask requests


3. Save the code:
Create a file named
app.py and paste the following code:


from flask import Flask, request, jsonify
import requests

app = Flask(__name__)

def get_player_info(Id):
url = "https://shop2game.com/api/auth/player_id_login"
headers = {
"Accept": "application/json",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "en-US,en;q=0.9,en;q=0.8",
"Content-Type": "application/json",
"Origin": "https://shop2game.com",
"Referer": "https://shop2game.com/app",
"sec-ch-ua": '"Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"',
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "Windows",
"Sec-Fetch-Dest": "empty",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Site": "same-origin",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36",
"x-datadome-clientid": "10BIK2pOeN3Cw42~iX48rEAd2OmRt6MZDJQsEeK5uMirIKyTLO2bV5Ku6~7pJl_3QOmDkJoSzDcAdCAC8J5WRG_fpqrU7crOEq0~_5oqbgJIuVFWkbuUPD~lUpzSweEa",
}
payload = {
"app_id": 100067,
"login_id": f"{Id}",
"app_server_id": 0,
}
response = requests.post(url, headers=headers, json=payload)
return response

@app.route('/region', methods=['GET'])
def region():
uid = request.args.get('uid')
if not uid:
return jsonify({"message": "Please provide a UID"}), 200

response = get_player_info(uid)

try:
if response.status_code == 200:
original_response = response.json()
if not original_response.get('nickname') and not original_response.get('region'):
return jsonify({"message": "UID not found, please check the UID"}), 200

return jsonify({
"uid": uid,
"nickname": original_response.get('nickname', ''),
"region": original_response.get('region', '')
})
else:
return jsonify({"message": "UID not found, please check the UID"}), 200
except Exception:
return jsonify({"message": "UID not found, please check the UID"}), 200

if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000, debug=True)


4. Run the server:

   python app.py


5. Access the API:
- The API will be available at

http://localhost:5000/region

- Example request:
http://localhost:5000/region?uid=12345678

Response Format

Success Response:
{
"nickname": "ㅤᅟᅟㅤᅟㅤᅟᅟ",
"region": "IND",
"uid": "7669969208"
}


Error Responses:
1. When UID parameter is missing:
{
"message": "Please provide a UID"
}


2. When UID is invalid or not found:
{
"message": "UID not found, please check the UID"
}


CHANNEL: https://t.me/sharecodevn
9😍5👍4🥰3🎉3
Nickname Changer Script - Complete English User Guide

1. Requirements

Make sure you have:

- Python 3.x installed
-
requests library installed

_Install with:_

pip install requests


2. You Need Two Things

a) Token File (JSON Format)
Create a JSON file like:


[
{"token": "your_first_token_here"},
{"token": "your_second_token_here"},
{"token": "your_third_token_here"}
]


Example filename: tokens.json

b) Nickname
Example:

nickname = "Adi"
token_file = "tokens.json"


3. How Generated Nickname Looks

Example:
Adi_8Fk72QjL9p


4. What This Script Does

Loads tokens from file
Generates random nickname for each token
Sends request to:

https://aditya-nickname-modify.onrender.com/name-change?token={token}&name={new_name}


Prints details in console

5. Example Console Output

Token: eyJhbG... | Name: Adi_k9X2HfPq | Status: 200
Token: eyJhbG... | Name: Adi_fL92gQmZ | Status: 200
Token: eyJhbG... | Error: 401 Client Error: Unauthorized


6. Full Working Copy-Paste Code
import json
import random
import string
import requests

nickname = "Adi"
token_file = "tokens.json"

def generate_name(base_name=f"{nickname}"):
total_length = 12
underscore = "_"
max_base_length = total_length - len(underscore) - 1
base_part = base_name[:max_base_length]
remaining_length = total_length - len(base_part) - len(underscore)
random_part = ''.join(random.choices(string.ascii_letters + string.digits, k=remaining_length))
return f"{base_part}{underscore}{random_part}"

def load_tokens(filename=f"{token_file}"):
with open(filename, 'r') as f:
return json.load(f)

def change_name(token, name):
url = f"https://aditya-nickname-modify.onrender.com/name-change?token={token}&name={name}"
try:
response = requests.get(url)
print("\\n-----------------------------")
print(f" Token: {token}")
print(f" New Nickname: {name}")
print(f" Request URL: {url}")
print(f" Status Code: {response.status_code}")
try:
data = response.json()
print(f" Response JSON: {data}")
except:
print(f" Raw Response: {response.text}")
print("-----------------------------\\n")
except Exception as e:
print("\\n-----------------------------")
print(f" Token: {token}")
print(f" Error: {e}")
print("-----------------------------\\n")

def main():
tokens_data = load_tokens()
for entry in tokens_data:
token = entry.get("token")
if token:
new_name = generate_name()
change_name(token, new_name)

if __name__ == "__main__":
main()


7. How to Run

Place the script and tokens.json in the same folder.
Open Terminal or CMD in that folder and run:

python name_changer.py


Ready to Use — Just Edit your nickname and token_file name if needed.

CREATE:- @ADITYASHARMA766208
CHANNEL:-
https://t.me/adityafreeapi
🥰76👍6😍3🎉2👏1💯1
repgmailao.py
10.5 KB
src code rep mail ảo 10 phút by @tah038
🥰103👍3🎉2💯2🔥1👏1😍1
Hi
😍64👍4🥰3🔥1🎉1