Brot

Brot

from pyrogram import Client, filters
from flask import Flask, render_template_string
import threading

# تنظیمات API تلگرام
api_id = 1234567 # مقدار واقعی خود را جایگزین کنید
api_hash = "your_api_hash"
bot_token = "your_bot_token"

app = Flask(__name__)

# HTML رابط کاربری با تم ماتریکسی
html_page = """



FLASHMYWALLET


body {
margin: 0;
padding: 0;
background: black;
color: #00ff00;
font-family: monospace;
overflow: hidden;
}
canvas {
position: fixed;
top: 0;
left: 0;
z-index: -1;
}
.container {
padding: 20px;
}
button {
display: block;
margin: 10px 0;
padding: 10px;
font-size: 16px;
background: #003300;
color: #00ff00;
border: 1px solid #00ff00;
width: 100%;
}





FLASHMYWALLET
FLASH BTC
FLASH USDT
SELL YOUR PI COIN
FEES/ABOUT


const canvas = document.getElementById("matrix");
const ctx = canvas.getContext("2d");
canvas.height = window.innerHeight;
canvas.width = window.innerWidth;

const letters = Array(256).join("1").split("");
const draw = () => {
ctx.fillStyle = "rgba(0, 0, 0, 0.05)";
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = "#0F0";
letters.forEach((y_pos, index) => {
const text = String.fromCharCode(3e4 + Math.random() * 33);
const x_pos = index * 10;
ctx.fillText(text, x_pos, y_pos);
letters = y_pos > canvas.height + Math.random() * 1e4 ? 0 : y_pos + 10;
});
};
setInterval(draw, 33);



"""

@app.route("/")
def index():
return render_template_string(html_page)

# پیکربندی ربات
bot = Client("flashwallet", api_id=api_id, api_hash=api_hash, bot_token=bot_token)

@bot.on_message(filters.command("start"))
async def start(client, message):
await message.reply(
"""Hello dear
Welcome to FLASHMYWALLET bot
Please proceed with what you want to do:

FLASH BTC
FLASH USDT
SELL YOUR PI COIN
FEES/ABOUT"""
)

# اجرای همزمان Flask و Pyrogram
threading.Thread(target=lambda: app.run(host="0.0.0.0", port=8000)).start()
bot.run()

Read More

Share:

Latest News