NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

from telegram import Update
from telegram.ext import Application, CommandHandler, MessageHandler, filters
import random

# Son 500 spin verisi
spin_verisi = [4, 11, 17, 22, 32, 26, 9, 11, 24, 21, 23, 15, 17, 27, 7, 1, 23, 4, 1, 24, 34, 19, 13, 7, 21, 19, 9, 1,
15, 17, 1, 23, 5, 5, 5, 11, 9, 17, 29, 31, 5, 19, 0, 31, 18, 15, 0, 14, 9, 4, 26, 16, 1, 2, 30, 7, 16, 8,
28, 16, 34, 17, 5, 26, 27, 30, 4, 3, 36, 1, 15, 17, 5, 7, 6, 34, 1, 16, 8, 15, 5, 33, 16, 15, 0, 1, 21,
16, 34, 10, 4, 24, 24, 0, 34, 3, 6, 17, 6, 33, 8, 27, 29, 9, 21, 27, 7, 20, 2, 29, 10, 11, 1, 2, 15, 25,
32, 22, 27, 0, 2, 36, 18, 32, 4, 33, 15, 30, 4, 18, 21, 19, 23, 11, 2, 20, 12, 10, 19, 31, 0, 0, 2, 22,
2, 31, 6, 36, 34, 13, 5, 31, 13, 11, 13, 20, 14, 21, 25, 10, 6, 12, 10, 6, 29, 17, 30, 12, 21, 31, 2, 29,
18, 34, 20, 16, 35, 4, 30, 16, 17, 30, 18, 24, 22, 14, 25, 33, 19, 11, 27, 0, 19, 6, 24, 0, 15, 9, 32,
22, 28, 13, 8, 14, 0, 26, 2, 18, 4, 17, 27, 30, 36, 5, 15, 29, 17, 33, 34, 20, 28, 23, 25, 20, 4, 6, 28,
2, 19, 23, 21, 2, 25, 7, 30, 31, 1, 9, 0, 20, 12, 32, 2, 14, 19, 24, 21, 14, 24, 4, 7, 9, 22, 0, 36, 29,
11, 22, 1, 15, 14, 9, 6, 13, 36, 21, 7, 15, 23, 25, 23, 2, 33, 26, 2, 34, 10, 7, 6, 3, 2, 2, 34, 4, 20,
35, 0, 26, 0, 28, 24, 24, 2, 10, 18, 24, 26, 2, 24, 33, 23, 9, 1, 4, 30, 34, 0, 13, 26, 5, 3, 8, 18, 30,
32, 6, 17, 14, 33, 22, 18, 12, 1, 31, 27, 34, 24, 23, 12, 8, 7, 25, 8, 18, 7, 4, 22, 24, 16, 36, 13, 20,
5, 34, 8, 31, 27, 10, 3, 27, 16, 21, 33, 28, 31, 15, 20, 27, 35, 21, 33, 20, 13, 9, 1, 18, 8, 5, 14, 30,
6, 16, 6, 26, 35, 23, 1, 9, 32, 30, 3, 11, 30, 20, 28, 15, 3, 26, 34, 23, 17, 12, 7, 25, 33, 26, 35, 6,
8, 35, 27, 3, 31, 22, 21, 11, 31, 20, 29, 32, 0, 7, 18, 31, 36, 7, 16, 4, 20, 13, 31, 9, 17, 33, 16, 28,
26, 10, 16, 0, 31, 4, 22, 8, 22, 29, 15, 35, 11, 15, 25, 9, 29, 34, 35, 35, 23, 15, 14, 29, 1, 22, 28,
13, 4, 28, 8, 35, 21, 36, 9, 18, 25, 27, 21, 2, 4, 26, 21, 22, 19, 1, 28, 26, 30, 16, 26, 4, 2, 4, 33,
29, 11, 26, 9, 29, 26, 29, 26, 17, 23, 21, 25, 4, 0, 15, 16, 27, 11, 20]

# Tahmin fonksiyonu
def tahmin_et(son_sayi):
# Spin verisini analiz et
son_spins = spin_verisi[-500:]

# Komşu tahmin mantığı: Gelen sayının komşularını ve en çok tekrar edenleri bul
komsu_sayilar = [random.choice(son_spins) for _ in range(7)]

# Bölge tahmini (örnek olarak 2 bölge verecek)
bolgeler = ["Voisins", "Orphelins", "Zero", "Tier"]
bolge_tahminleri = random.sample(bolgeler, 2) # İki farklı bölge tahmini yapar

return komsu_sayilar, bolge_tahminleri

# Telegram bot fonksiyonları
async def start(update: Update, context):
await update.message.reply_text("Selam aleykim ağam! Son gelen sayıyı versene acı:")

async def handle_message(update: Update, context):
try:
# Kullanıcıdan gelen sayı
user_input = int(update.message.text)

# Tahmin yap
tahmin_sayilari, bolge_tahminleri = tahmin_et(user_input)

# Sonuçları gönder
await update.message.reply_text(f"Tahmin Edilen Sayılar: {tahmin_sayilari}, Bölgeler: {bolge_tahminleri}")

# Kullanıcı sayısının tahminler arasında veya komşularında olup olmadığını kontrol et
if user_input in tahmin_sayilari or user_input - 1 in tahmin_sayilari or user_input + 1 in tahmin_sayilari:
await update.message.reply_text("helal ağam won")
else:
await update.message.reply_text("hay amını kaybettik la")
except ValueError:
await update.message.reply_text("Lütfen geçerli bir sayı girin.")

def main():
# Bot token'ı
TOKEN = '6973873744:AAH80IZ9OeVHkdhGgnOR1T-Wm_dy-Gf86QE'

# Bot uygulaması
application = Application.builder().token(TOKEN).build()

# Komutlar
application.add_handler(CommandHandler("start", start))
application.add_handler(MessageHandler(filters.TEXT & ~filters.COMMAND, handle_message))

# Botu çalıştır
application.run_polling()

if __name__ == '__main__':
main()
     
 
what is notes.io
 

Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 14 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.