from telethon.sync import TelegramClient
from telethon import functions, types
from telethon.sessions import StringSession
from time import sleep
sessions = ["سيشن1",
"سيشن2","سيشن3","سيشن4","سيشن5"]
message = " https://hottg.com/acup_ofcoffee "
api_id = 15551290
api_hash = 'ايبي هاش'
wait = 1
clients = []
for session in sessions:
client = TelegramClient(StringSession(session), api_id, api_hash)
client.start()
clients.append(client)
for client in clients:
if not client.is_user_authorized():
print("لم يتم التحقق من السيشن")
exit()
links = ["نهايته الرابط الي تكون بعد الزائد مثال ذلك j3828jfjsi"]
while True:
for link in links:
for client in clients:
try:
result = client(functions.messages.ImportChatInviteRequest(link))
except Exception as e:
print(f"خطا في دخول القروب: {e}")
continue
try:
client.send_message(result.chats[0].id, message)
except Exception as e:
print(f"خطا في ارسال الرسائل: {e}")
continue
sleep(wait)
try:
client(functions.channels.LeaveChannelRequest(result.chats[0].id))
except Exception as e:
print(f"خطا في مغادرة الجروب : {e}")
continue
كود تخلي رابط مجموعه وتخلي ارقامك يدخل للكروب يدز رساله ويخرج ارقام لا نهائية
كود سبام تكدر تسوي اكثر 5سيشنات نفس الترتيب + استبدل كلمه سيشن بسشيناتك
@t_r_u مصدر
>>Click here to continue<<