IvanCastl

Datos de un bot

Dec 19th, 2025
537
0
Never
7
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.24 KB | Cybersecurity | 0 0
  1. import requests
  2.  
  3. # 🔹 Configuración
  4. TOKEN = "8520785101:AAF6eyh1viJXwkSdcj3RZMOUxFSb_NrrEp8"
  5. CHAT_ID = "6328222257"  # ID del usuario o chat
  6.  
  7. # 🔹 Obtener información del usuario
  8. def obtener_info_usuario():
  9.     url = f"https://api.telegram.org/bot{TOKEN}/getChat?chat_id={CHAT_ID}"
  10.     response = requests.get(url).json()
  11.  
  12.     if response.get("ok"):
  13.         user_data = response["result"]
  14.         print(f"✅ Información del usuario: {user_data}")
  15.  
  16.         # Extraer foto de perfil si existe
  17.         if "photo" in user_data:
  18.             photo_id = user_data["photo"]["big_file_id"]
  19.             obtener_foto_perfil(photo_id)
  20.     else:
  21.         print(f"❌ Error al obtener datos: {response}")
  22.  
  23. # 🔹 Obtener foto de perfil
  24. def obtener_foto_perfil(file_id):
  25.     url = f"https://api.telegram.org/bot{TOKEN}/getFile?file_id={file_id}"
  26.     response = requests.get(url).json()
  27.  
  28.     if response.get("ok"):
  29.         file_path = response["result"]["file_path"]
  30.         photo_url = f"https://api.telegram.org/file/bot{TOKEN}/{file_path}"
  31.         print(f"📷 Foto de perfil: {photo_url}")
  32.     else:
  33.         print(f"❌ Error al obtener la foto: {response}")
  34.  
  35. # 🔹 Ejecutar funciones
  36. if __name__ == "__main__":
  37.     obtener_info_usuario()
  38.  
Tags: #python #bot
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Beyalxa
    9 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment