Facebook
From ASDSDAS, 1 Month ago, written in Python.
Embed
Download Paste or View Raw
Hits: 162
  1. import requests
  2. import time
  3.  
  4. def send_message(bot_token, chat_id, message):
  5.     url = f"https://api.telegram.org/bot{bot_token}/sendMessage"
  6.     payload = {
  7.         'chat_id': chat_id,
  8.         'text': message
  9.     }
  10.     response = requests.post(url, json=payload)
  11.     return response.json()
  12.  
  13. def main():
  14.     # Birden fazla bot tokeni
  15.     bot_tokens = ["6606543136:AAH3NmxRr7p3QcQKoX729FK6x6bqc-vPbYM"]
  16.  
  17.     # Hedef kanalın veya grubun ID'sini buraya girin
  18.     chat_id = "-1002050192705"
  19.  
  20.     # Göndermek istediğiniz metni belirleyin
  21.     message = "ALPEREN PATRON ALLAH KİTAP XD"
  22.  
  23.     # Tüm botlar için mesaj gönderme işlemini gerçekleştirin
  24.     while True:
  25.         for bot_token in bot_tokens:
  26.             try:
  27.                 send_message(bot_token, chat_id, message)
  28.                 print(f"Bot {bot_token} tarafından mesaj gönderildi.")
  29.             except Exception as e:
  30.                 print(f"Hata oluştu: {e}")
  31.         # Her 3 saniyede bir mesajı gönder
  32.         time.sleep(0.5)
  33.  
  34. if __name__ == "__main__":
  35.     main()
  36.