79270752

Date: 2024-12-11 07:05:50
Score: 3.5
Natty:
Report link
from telethon.tl.types import ChannelParticipantsKicked
from telethon.sync import TelegramClient

api_id = #
api_hash = '#'
group_id = '-#'
client = TelegramClient('apptitle', api_id, api_hash)

async def main():
   await client.start() 
   kicked_members = await client.get_participants(group_id, filter=ChannelParticipantsKicked)
   file_name = 'kicked_members.txt'
   with open(file_name, 'w') as file:
       for member in kicked_members:
       file.write(member + '\n')

I run a find option in windows explorer to find a file kicked_members.txt but it found nothing :( What did i do wrong ?

Reasons:
  • Blacklisted phrase (1): :(
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: TipsyWolf