import time
from collections import Counter
from telegram import Bot
# Coloque o token do seu bot aqui
TELEGRAM_API_TOKEN = 'SEU_TOKEN_AQUI'
# Coloque o chat_id do usuário que vai receber as mensagens
TELEGRAM_CHAT_ID = 'SEU_CHAT_ID_AQUI'
bot = Bot(token=TELEGRAM_API_TOKEN)
def get_double_history():
url = "https://blaze.com/api/roulette_games/recent"
response = requests.get(url)
if response.status_code == 200:
return response.json()
else:
return []
def extract_colors(data):
colors = []
for game in data:
if 'color' in game:
colors.append(game['color'])
return colors
def predict_next_color(colors):
if not colors:
return None
count = Counter(colors)
most_common_color = count.most_common(1)[0][0]
return most_common_color
def send_signal(color):
message = f"Sinal Blaze Double: cor prevista para sair em 30 segundos -> {color}"
bot.send_message(chat_id=TELEGRAM_CHAT_ID, text=message)
prin…